API reference: @salmonui/editors/inline-edit
InlineEditApiinterface
import type { InlineEditApi } from '@salmonui/editors/inline-edit';interface InlineEditApi {
readonly element: HTMLSpanElement | null;
startEdit(): void;
save(): Promise<boolean>;
cancelEdit(): void;
validate(): Promise<readonly string[]>;
}
Ref handle: the Data Grid edit method names.
| Name | Signature | Description |
|---|---|---|
element | readonly element: HTMLSpanElement | null; | The root element. |
startEdit | startEdit(): void; | |
save | save(): Promise<boolean>; | Saves the draft; resolves to true when the value was saved. |
cancelEdit | cancelEdit(): void; | |
validate | validate(): Promise<readonly string[]>; | Validates the draft (or the saved value when idle) and resolves to the error list. |