Server-Side Pagination
For large datasources, a remote datasource can be used so that the only visible rows have to be download to the client.
The most common method for remote data is using REST server.
Plug-in Support for Custom APIs
The <sortable-table>
will try to load any node from its content that has role="datasource"
.
This means any custom element can be used as a datasource, as long as it implements the following attributes:
<your-component
start=[int]
length=[int]
search=[string]
sortColumn=[string]
sortDescending=[boolean]
filters=[array({ column: [string], op: [string], value: [string] })]
columns=[array({ name: [string] })]
(output) filterOps=[array({ title: [string], op: [string], html: [string] })]
(output) loading=[boolean]
(output) data=[array(json)]
(output) dataSize=[int]
></your-component>