How to implement responsive table in Grails?

How to implement responsive table in Grails?



<table>
<g:each in="${yourDataList}" var="data">
<tr id="dataRow${data.id}">
    <g:render template="tableRow" />
</tr>
</g:each>
</table>

<td>${data.id}</td>
<td>${data.booleanValue}</td>
<td><g:submitToRemote action="updateAction" id="${data.id}" update="dataRow${data.id}" /></td>

def updateAction = {
    Data data = Data.get(params.id)

    // your business logic
    data.booleanValue = false;

    data.save(flush: true);

    render(template: "tableRow", model: [data: data]);
}

Comments

Popular posts from this blog

How to change this to <%Html.ActionLink%> in my asp.net mvc application ?