- Description:
Module to handle dynamic table features.
- Source:
- Copyright:
- 2020 Simey Lameze
- 2020 Simey Lameze
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Module to handle dynamic table features.
Members
(static, constant) getFilters
- Description:
Get the filter data for the specified table.
- Source:
Get the filter data for the specified table.
(static, constant) getFirstInitial
- Description:
Get the current first initial filter.
- Source:
Get the current first initial filter.
(static, constant) getLastInitial
- Description:
Get the current last initial filter.
- Source:
Get the current last initial filter.
(static, constant) getPageNumber
- Description:
Get the current page number.
- Source:
Get the current page number.
(static, constant) getPageSize
- Description:
Get the current page size.
- Source:
Get the current page size.
(static, constant) getTableFromId
- Description:
Fetch the table via its table region id.
- Source:
Fetch the table via its table region id.
(static, constant) hideColumn
- Description:
Hide a column in the participants table.
- Source:
Hide a column in the participants table.
(static, constant) init
- Description:
Set up listeners to handle table updates.
- Source:
Set up listeners to handle table updates.
(static, constant) refreshTableContent
- Description:
Update the specified table based on its current values.
- Source:
Update the specified table based on its current values.
(static, constant) setFilters
- Description:
Update the specified table using the new filters.
- Source:
Update the specified table using the new filters.
(static, constant) setFirstInitial
- Description:
Update the first initial to show.
- Source:
Update the first initial to show.
(static, constant) setLastInitial
- Description:
Update the last initial to show.
- Source:
Update the last initial to show.
(static, constant) setPageNumber
- Description:
Set the page number.
- Source:
Set the page number.
(static, constant) setPageSize
- Description:
Set the page size.
- Source:
Set the page size.
(static, constant) setSortOrder
- Description:
Update the sort order.
- Source:
Update the sort order.
(static, constant) showColumn
- Description:
Make a hidden column visible in the participants table.
- Source:
Make a hidden column visible in the participants table.
Methods
(inner) checkTableIsDynamic(tableRoot) → {Bool}
- Description:
Ensure that a table is a dynamic table.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
tableRoot |
HTMLElement |
Returns:
- Type
- Bool
(inner) getFiltersetFromTable(tableRoot) → {Object}
- Description:
Get the filterset data from a known dynamic table.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
tableRoot |
HTMLElement |
Returns:
- Type
- Object
(inner) getTableData(tableRoot) → {DOMStringMap}
- Description:
Get the table dataset for the specified tableRoot, ensuring that the provided table is a dynamic table.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
tableRoot |
HTMLElement |
Returns:
- Type
- DOMStringMap
(inner) resetTablePreferences(tableRoot) → {Promise}
- Description:
Reset table preferences.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
tableRoot |
HTMLElement |
Returns:
- Type
- Promise