API reference: @salmonui/data-grid
DataGridErrorEventinterface
import type { DataGridErrorEvent } from '@salmonui/data-grid';interface DataGridErrorEvent extends DataGridEvent {
readonly error: Error;
readonly action: 'sort' | 'filter' | 'search' | 'page' | 'data' | 'save' | 'persistState' | (string & {});
}
onError (type: 'error'): a rejected action. Not cancellable.
| Name | Signature | Description |
|---|---|---|
error | readonly error: Error; | |
action | readonly action: 'sort' | 'filter' | 'search' | 'page' | 'data' | 'save' | 'persistState' | (string & {}); |
|
typeinherited | type: string; |
|
sourceinherited | source: DataGridEventSource; | |
defaultPreventedinherited | defaultPrevented: boolean; | True after |
preventDefaultinherited | preventDefault: () => void; | Before-events and click events: cancels the action (or the built-in behavior). |