View as Markdown

API reference: @salmonui/data-grid

DataGridEditorInputPropsinterface

import type { DataGridEditorInputProps } from '@salmonui/data-grid';
interface DataGridEditorInputProps {
    id: string;
    'aria-label': string;
    'aria-invalid': boolean | undefined;
    'aria-describedby': string | undefined;
    'aria-required': boolean | undefined;
    autoFocus: boolean;
    disabled?: boolean | undefined;
}

Attributes the editor element must carry (ids, ARIA wiring, keyboard). Spread onto the focusable input.

DataGridEditorInputProps members (7)
NameSignatureDescription
idid: string;
aria-label'aria-label': string;
aria-invalid'aria-invalid': boolean | undefined;
aria-describedby'aria-describedby': string | undefined;
aria-required'aria-required': boolean | undefined;
autoFocusautoFocus: boolean;

The editor that takes DOM focus when it mounts.

disabledoptionaldisabled?: boolean | undefined;

The always-visible add row while another row edits.