View as Markdown

API reference: @salmonui/calendars/date-picker/data-grid

DatePickerEditorContextinterface

import type { DatePickerEditorContext } from '@salmonui/calendars/date-picker/data-grid';
interface DatePickerEditorContext {
    readonly value: unknown;
    setValue(value: unknown): void;
    readonly editorProps: Readonly<Record<string, unknown>>;
    readonly inputProps: object;
}

The part of the Data Grid renderEditor context the editor reads.

DatePickerEditorContext members (4)
NameSignatureDescription
valuereadonly value: unknown;
setValuesetValue(value: unknown): void;
editorPropsreadonly editorProps: Readonly<Record<string, unknown>>;

Column editorProps: the keys of DATE_PICKER_EDITOR_PROPS reach the DatePicker.

inputPropsreadonly inputProps: object;

The id and ARIA wiring of the grid editor (id, aria-label, aria-invalid, aria-describedby, aria-required, autoFocus, disabled).