View as Markdown

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.

DataGridEditProps members (17, 3 inherited)
NameSignatureDescription
editingoptionalediting?: boolean | DataGridEditing<Row>;

Editing. true for the defaults (row mode). The module is registered when the initial value is set.

onBeforeEditStartoptionalonBeforeEditStart?: (event: DataGridEditStartEvent<Row>) => void;
onEditStartoptionalonEditStart?: (event: DataGridEditStartEvent<Row>) => void;
onBeforeCellValueChangeoptionalonBeforeCellValueChange?: (event: DataGridCellValueChangeEvent) => void;
onCellValueChangeoptionalonCellValueChange?: (event: DataGridCellValueChangeEvent) => void;
onBeforeSaveoptionalonBeforeSave?: (event: DataGridSaveEvent<Row>) => void;
onSaveoptionalonSave?: (event: DataGridSaveEvent<Row>) => void;
onBeforeAddoptionalonBeforeAdd?: (event: DataGridAddEvent<Row>) => void;
onAddoptionalonAdd?: (event: DataGridAddEvent<Row>) => void;
onBeforeDeleteoptionalonBeforeDelete?: (event: DataGridDeleteEvent<Row>) => void;
onDeleteoptionalonDelete?: (event: DataGridDeleteEvent<Row>) => void;
onBeforeEditCanceloptionalonBeforeEditCancel?: (event: DataGridEditCancelEvent) => void;
onEditCanceloptionalonEditCancel?: (event: DataGridEditCancelEvent) => void;
onCommandClickoptionalonCommandClick?: (event: DataGridCommandClickEvent<Row>) => void;
onBeforeCopyoptionalinheritedonBeforeCopy?: ((event: DataGridBeforeCopyEvent) => void);
onBeforePasteoptionalinheritedonBeforePaste?: ((event: DataGridBeforePasteEvent) => void);
onBeforeFilloptionalinheritedonBeforeFill?: ((event: DataGridBeforeFillEvent) => void);