API reference: @salmonui/data-grid/engine
FocusMethodstype
import type { FocusMethods } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/focus.
type FocusMethods<Row> = {
getTarget(ctx: ModuleContext<Row>): FocusTarget | null;
resolveMove(ctx: ModuleContext<Row>, direction: FocusDirection, pageSize?: number): FocusTarget | null;
getDefaultTarget(ctx: ModuleContext<Row>): FocusTarget | null;
};
| Name | Signature | Description |
|---|---|---|
getTarget | getTarget(ctx: ModuleContext<Row>): FocusTarget | null; | Current logical target (null before anything was focused). |
resolveMove | resolveMove(ctx: ModuleContext<Row>, direction: FocusDirection, pageSize?: number): FocusTarget | null; | Where |
getDefaultTarget | getDefaultTarget(ctx: ModuleContext<Row>): FocusTarget | null; | First body cell, or the first header cell when there are no rows. |