Class: DataGrid

greppy. DataGrid

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

Search
Sort

Methods

buildUrl(params) → {String}

Build URL with given params.

Parameters:
Name Type Description
params Array

Parameters to add to the request

Source:
Returns:
Type
String

load(rows, pagination, page)

Load by all settings.

Parameters:
Name Type Argument Description
rows Boolean <optional>

Load and build rows - Default: true

pagination Boolean <optional>

Load and build pagination - Default: true

page Integer <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
params Array

Array of params to use for building the url

callback function

Function to call on finish

Source:

reset()

Reset all filters.

Source:

setProvidedLabels()

Apply each label provided via options to compatible instances.

Source: