Components.ModelsTableRowFiltering Class
Table header item used within models-table/table-header.
Component generates tr with filter inputs in the separated cells. Filter for column may be as an input or select. Second one may have predefined set of options or may calculate list of options from table data. Last scenario doesn't work with models-table-server-paginated. Check properties disableFiltering, filteredBy, filterFunction, filterPlaceholder, filterWithSelect, predefinedFilterOptions for ModelsTableColumn.
Usage example:
{{#models-table data=data columns=columns as |mt|}}
{{#mt.table as |table|}}
{{#table.header as |header|}}
{{header.row-filtering}}
{{! ... }}
{{/table.header}}
{{! ... }}
{{/mt.table}}
{{! .... }}
{{/models-table}}
Usage with a block context:
{{#models-table data=data columns=columns as |mt|}}
{{#mt.table as |table|}}
{{#table.header as |header|}}
{{#header.row-filtering as |rf|}}
{{#each rs.visibleProcessedColumns as |column|}}
{{rf.row-filtering-cell column=column}}
{{/each}}
{{/header.row-filtering}}
{{! ... }}
{{/table.header}}
{{! ... }}
{{/mt.table}}
{{! .... }}
{{/models-table}}
ModelsTableRowFiltering yields references to the following contextual components:
- models-table/row-filtering-cell - component used as filter row cell. It shows input or select or custom component. Check filter-options for columns
Check own docs for each component to get detailed info.
Item Index
Properties
Properties
visibleProcessedColumns
ModelsTableColumn
Bound from ModelsTable.visibleProcessedColumns
Default: null
Events
collapseAllRows
Closure action ModelsTable.actions.collapseAllRows
expandAllRows
Closure action ModelsTable.actions.expandAllRows
sendAction
Closure action ModelsTable.actions.sendAction
sort
Closure action ModelsTable.actions.sort
toggleAllSelection
Closure action ModelsTable.actions.toggleAllSelection