View as Markdown

API reference: @salmonui/data-grid/engine

EditTargetinterface

import type { EditTarget } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid/engine/edit.

interface EditTarget {
    readonly rowId: RowId;
    readonly columnId: ColumnId | null;
    readonly isNew: boolean;
}

The row (row and dialog modes) or cell (batch and cell modes) being edited.

EditTarget members (3)
NameSignatureDescription
rowIdreadonly rowId: RowId;
columnIdreadonly columnId: ColumnId | null;

The edited cell; in row and dialog mode the cell that has the editor focus.

isNewreadonly isNew: boolean;