<wtui:datatable/>
The tag for WTUI.DataTable
Example:
<wtui:datatable id="exampleid" datasource="?cmd=getdata"> <wtui:column key="firstname">First Name</wtui:column> <wtui:column>Last Name</wtui:column> <wtui:column key="view"></wtui:column> </wtui:datatable>
- Parameters:
-
id <String>(optional) The id of the datatable -
fields <String>The column headings for the table -
datasource <String>(optional) The url of where to fetch the data for the table from -
perpage <Integer>(optional) The number of rows to display per page -
canselectrow <String>(optional) set to yes if rows in the table can be selected -
rendercell <Function>(optional) An optional function to cell when rendering a cell in the table -
onheadingclick <Funtion>(optional) An optional function to call when a heading is clicked