mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-05-03 07:03:33 +02:00
Page:
1.08 Loading indicator
Pages
1.0 Configuration
1.01 Appearance
1.02 Main features
1.03 Grid layout
1.04 Paging
1.05 Drop down filter
1.06 Checklist filter
1.07 Rows counter
1.08 Loading indicator
1.09 Submit and reset button
1.10 Status bar
1.11 Data types
1.12 Themes
1.13 Help instructions
1.14 Popup filters
1.15 No results message
1.16 Highlight keywords
1.17 State
1.18 Mark active columns
1.19 Toolbar
1.20 Single filter
2.0 TableFilter class
2.1 Public properties
2.2 Public methods
3.0 Extensions
3.1 Advanced grid
3.1 Sort
3.2 Column operations
3.3 Filters visibility
3.4 Columns visibility
4. Filter operators
Home
Obsolete
TODO
2
1.08 Loading indicator
koalyptus edited this page 2017-05-18 20:35:52 +10:00
Property | Type | Description | Remarks | Example |
---|---|---|---|---|
loader | boolean|object | if set true, it will display a "loading" message (default - false) |
var tfConfig = { loader: true }; // or var tfConfig = { loader: {} }; |
|
text | string | sets the text for "loading" message (default - "Loading...") |
var tfConfig = { loader: { text: 'Filtering data...' } }; |
|
html | string | defines loader's HTML if loader property set true (default - null) |
var tfConfig = {
loader: {
html: 'Filtering data'
}
};
|
|
css_class | string | defines the css class of the loader's container element (default + 'loader') |
var tfConfig = { loader: { css_class: 'myCssClass' } }; |
|
target_id | string | defines the id of the element that will contain the loader (default - null) |
var tfConfig = { loader: { target_id: 'myContainerId' } }; |
|
on_show_loader | function | callback fired before loader is displayed |
Useful for creating advanced transition effects during filtering
operations. One parameter is passed to the callback function:
|
var tfConfig = { loader: { on_show_loader: function(feature) { console.log(feature); } } }; |
on_hide_loader | function | callback fired after loader is hidden |
Useful for creating advanced transition effects during filtering
operations. One parameter is passed to the callback function:
|
var tfConfig = { loader: { on_hide_loader: function(feature) { console.log(feature); } } }; |