mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-08 08:52:32 +02:00
Updated 1.0 Configuration (markdown)
parent
d8e49a84d8
commit
6c1b7e065f
|
@ -1,6 +1,6 @@
|
|||
In this section you will find all the configuration options (`var tfConfig = { property: 'value' }`).
|
||||
|
||||
Here is a more extensive example showing many of the features and options with Texts in German:
|
||||
Here is a more extensive example showing many of the features and options including texts in German:
|
||||
|
||||
`const tf = new TableFilter(my_table, {`
|
||||
`base_path: 'tablefilter/',`
|
||||
|
@ -8,8 +8,11 @@ Here is a more extensive example showing many of the features and options with T
|
|||
`auto_filter: { delay: 500 }, // Delay for automatic filtering (milliseconds)`
|
||||
|
||||
`state: { // Enable state persistence `
|
||||
`types: ['local_storage'],`
|
||||
`types: ['local_storage'], // Possible values: 'local_storage' 'hash' or 'cookie'`
|
||||
`filters: true,`
|
||||
`filters: true, // Persist filters values, enabled by default`
|
||||
`columns_visibility: true, // Persist columns visibility`
|
||||
`filters_visibility: true, // Persist filters row visibility`
|
||||
`},`
|
||||
|
||||
`sticky_headers: true, // Sticky headers with overrides`
|
||||
|
@ -63,6 +66,27 @@ Here is a more extensive example showing many of the features and options with T
|
|||
`watermark: [ 'Filter...', ], // Repeated watermark text for input fields or watermark for each filter if an array is supplied`
|
||||
|
||||
`extensions:[ // Extensions load addititional script files`
|
||||
`{ `
|
||||
`name: 'colsVisibility',`
|
||||
`description: 'Sichbarkeit der Spalten verwalten', // Module description`
|
||||
`enable_hover: true, // Enable hover behaviour on columns manager button/link`
|
||||
`btn_text: 'Spalten verstecken▼', // Button's text, defaults to Columns▼`
|
||||
`//at_start: [3, 4], // List of columns indexes to be hidden at initialization`
|
||||
`tickToHide: true, // Enable tick to hide a column, defaults to true`
|
||||
`text: 'Versteckte Spalten: ', // Text preceding the columns list, defaults to 'Hide' or 'Show'`
|
||||
`btn_close_text: 'Schließen', // Columns manager UI close link text, defaults to 'Close'`
|
||||
`enable_tick_all: false, // Enable select all option, disabled by default`
|
||||
`tick_all_text: 'Alle auswählen:', // Text for select all option, defaults to 'Select all:'`
|
||||
`toolbar_position: 'right', // Default position in toolbar ('left'|'center'|'right')`
|
||||
`},`
|
||||
`{`
|
||||
`name: 'filtersVisibility',`
|
||||
`description: 'Sichtbarkeit der Filter', // Module description`
|
||||
`visible_at_start: true, // Make filters visible at initialization, defaults to true`
|
||||
`enable_icon: true, // Enable expand/collapse icon, defaults to true`
|
||||
`btn_text: 'Filter', // Custom text for button`
|
||||
`toolbar_position: 'right', // Default position in toolbar ('left'|'center'|'right')`
|
||||
`},`
|
||||
`//{ name: 'sort' } // Sort requires to classify numeric columns using "col_types : [ 'numeric', String', ...],"`
|
||||
`],`
|
||||
`});`
|
||||
|
|
Loading…
Reference in a new issue