API reference: @salmonui/data-grid
DataGridEditPropsinterface
import type { DataGridEditProps } from '@salmonui/data-grid';interface DataGridEditProps<Row> extends DataGridClipboardProps {
editing?: boolean | DataGridEditing<Row>;
onBeforeEditStart?: (event: DataGridEditStartEvent<Row>) => void;
onEditStart?: (event: DataGridEditStartEvent<Row>) => void;
onBeforeCellValueChange?: (event: DataGridCellValueChangeEvent) => void;
onCellValueChange?: (event: DataGridCellValueChangeEvent) => void;
onBeforeSave?: (event: DataGridSaveEvent<Row>) => void;
onSave?: (event: DataGridSaveEvent<Row>) => void;
onBeforeAdd?: (event: DataGridAddEvent<Row>) => void;
onAdd?: (event: DataGridAddEvent<Row>) => void;
onBeforeDelete?: (event: DataGridDeleteEvent<Row>) => void;
onDelete?: (event: DataGridDeleteEvent<Row>) => void;
onBeforeEditCancel?: (event: DataGridEditCancelEvent) => void;
onEditCancel?: (event: DataGridEditCancelEvent) => void;
onCommandClick?: (event: DataGridCommandClickEvent<Row>) => void;
}
Editing props of DataGrid.
| Name | Signature | Description |
|---|---|---|
editingoptional | editing?: boolean | DataGridEditing<Row>; | Editing. |
onBeforeEditStartoptional | onBeforeEditStart?: (event: DataGridEditStartEvent<Row>) => void; | |
onEditStartoptional | onEditStart?: (event: DataGridEditStartEvent<Row>) => void; | |
onBeforeCellValueChangeoptional | onBeforeCellValueChange?: (event: DataGridCellValueChangeEvent) => void; | |
onCellValueChangeoptional | onCellValueChange?: (event: DataGridCellValueChangeEvent) => void; | |
onBeforeSaveoptional | onBeforeSave?: (event: DataGridSaveEvent<Row>) => void; | |
onSaveoptional | onSave?: (event: DataGridSaveEvent<Row>) => void; | |
onBeforeAddoptional | onBeforeAdd?: (event: DataGridAddEvent<Row>) => void; | |
onAddoptional | onAdd?: (event: DataGridAddEvent<Row>) => void; | |
onBeforeDeleteoptional | onBeforeDelete?: (event: DataGridDeleteEvent<Row>) => void; | |
onDeleteoptional | onDelete?: (event: DataGridDeleteEvent<Row>) => void; | |
onBeforeEditCanceloptional | onBeforeEditCancel?: (event: DataGridEditCancelEvent) => void; | |
onEditCanceloptional | onEditCancel?: (event: DataGridEditCancelEvent) => void; | |
onCommandClickoptional | onCommandClick?: (event: DataGridCommandClickEvent<Row>) => void; | |
onBeforeCopyoptionalinherited | onBeforeCopy?: ((event: DataGridBeforeCopyEvent) => void); | |
onBeforePasteoptionalinherited | onBeforePaste?: ((event: DataGridBeforePasteEvent) => void); | |
onBeforeFilloptionalinherited | onBeforeFill?: ((event: DataGridBeforeFillEvent) => void); |