Event
Overview
Handling global events
onFocusChange
onClick
onDoubleClick
onKeyDown
onRowClick
Callback fired when a click event comes from a row container element.
function(event: Event, params: { keyId: string|number, columnKey: string, row: Row }) => void
onRowContextMenu
Callback fired when a right click event comes from a row container element.
function(event: Event, params: { keyId: string|number, columnKey: string, row: Row }) => void
onColumnsChange
Callback fired when the columns settings are changed. Meaning columns being hidden/shown.
function(Column[])
onFilterChange
Callback fired when a filter is changed
function({ q: string, filters: Map })
onChipFocus
Callback fired when a filter chip is focused
function(e: FocusEvent<HTMLInputElement>)
onChipBlur
Callback fired when a filter chip is blurred
function(e: FocusEvent<HTMLInputElement>)
onSearchBarEnterKeyDown
Callback fired when we keyDown the ENTER key on the main search input
function onSearchBarEnterKeyDown(searchValue: String)
onCustomExportClick
Callback fired when the export button is clicked. This callback is called with the export type requested (e.g., csv
, pdf
, xls
, or print
), and an additional boolean value that indicates whether all pages should be exported.
If the isExportAllPages
prop is set to true
, the callback will receive an additional boolean parameter, which will be true
if the user opted to export all pages, and false
otherwise.
function onCustomExportClick(data: csv | pdf | xls | print, exportAllPages?: boolean)
Handling cell events
All cells type are listening to those events. Keep in mind that those listeners are located on the cell level and not the cell subcomponent level.
Meaning that if the user click just next to the comment Icon but still into the cell, the onClick
event will be triggered.