Releases: komarovalexander/ka-table
Releases · komarovalexander/ka-table
Add ability to get filtered data from table props
kaPropsUtils.getFilteredData(tableProps)
Obtains filtered data by current table props
const data = kaPropsUtils.getFilteredData(tableProps);
Bulk select
selectRows(rowsKeyValues)
deselectRows(rowsKeyValues)
Header Filter: Items customization & Item text customization & custom filter
column.headerFilterListItems
- returns items for header filter ListchildComponents.popupContentItemText
- allows to customize text component of particular item in header filter listcolumn.filter
- allows to customize fiilter for particular column (work for both HeaderFilter and FilterRow)
demo https://komarovalexander.github.io/ka-table/#/header-filter-logic
Add rowData as a parameter to a format function
format: ({ rowData, value, column }) => ....
Add FilterRowAndHeaderFilter filtering mode
filteringMode: FilteringMode.FilterRowAndHeaderFilter
demo https://stackblitz.com/edit/table-filter-row-ts-tyxaaf?file=Demo.tsx
Add groupItems and columns to the GroupRow
Add rowData to filter function
new rowData parameter added to give user access to rowData in that function
filter={(props) => {
if (props.column.key === 'column1') {
return (value: number[], filterRowValue: number, rowData: any) => //... ;
}
}}
Add column.isFilterable option
columns: [{
isFilterable: false, // hide filter row cell for a specific column
// ..
}]
demo: https://komarovalexander.github.io/ka-table/#/selection
Replace font icons with svg icons
#193
major version has been increased as it removes icon fonts from the project and table started to use svg instead
breaking change:
remove @import 'ka-table/static/icons.scss';
from your project, as icons.scss
file is not available anymore instead of that inline svg icons are used