new DataGrid(table, options)
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
table |
Object | jQuery object of the table to use for the DataGrid |
|
options |
Object |
<optional> |
Options to use for the DataGrid |
- Source:
Classes
Methods
-
buildUrl(params) → {String}
-
Build URL with given params.
Parameters:
Name Type Description paramsArray Parameters to add to the request
- Source:
Returns:
- Type
- String
-
load(rows, pagination, page)
-
Load by all settings.
Parameters:
Name Type Argument Description rowsBoolean <optional>
Load and build rows - Default: true
paginationBoolean <optional>
Load and build pagination - Default: true
pageInteger <optional>
Pass page number to load (dont use the user-selected)
- Source:
-
loadAndRebuild(params, callback)
-
Perform an AJAX request to load table rows and fill the table with the results.
Parameters:
Name Type Description paramsArray Array of params to use for building the url
callbackfunction Function to call on finish
- Source:
-
reset()
-
Reset all filters.
- Source:
-
setProvidedLabels()
-
Apply each label provided via options to compatible instances.
- Source: