Methods
manipulate the table Programmatically
Call methods on your instance using the ref
attribute.
setPage(page)
setLimit(recordsPerPage)
setOrder(column, isAscending)
setFilter(query)
-query
should be a string, or an object iffilterByColumn
is set totrue
.resetQuery()
- Resets all query inputs (user-request filters) to empty strings.getData()
Get table data using the existing request parameters. Server component only.refresh()
Refresh the table. This method is simply a wrapper for theserverSearch
method, and thus resets the pagination. Server component onlygetOpenChildRows(rows = null)
If no argument is supplied returns all open child row components in the page. To limit the returned dataset you can pass therows
arguemnt, which should be an array of unique identifiers.setCustomFilters(params)
set custom filters values. Expects an object with key-value pairsresetCustomFilters()
(server component) resets all custom filters tonull
getRequestParams()
(server component) get current request parameterssetRequestParams(params)
(server component) - see heredownloadCsv(filename = 'table.csv')
(client component) - premium version - download CSV of current table state (i.e filtered and sorted, without pagination limit)
The
getOpenChildRows
method is only to be used when the child row is a componentIn order for this method to work you need to set the
name
property on your component toChildRow
Last updated