import{_ as e,c as t,o as a,N as r}from"./chunks/framework.0799945b.js";const g=JSON.parse('{"title":"Interface: GridOptions","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/features/grids/grid.GridOptions.md","lastUpdated":null}'),o={name:"api/interfaces/features/grids/grid.GridOptions.md"},i=r('
features/grids/grid.GridOptions
An object that configures a Grid.
• cols: Computable
<number
>
The number of columns in the grid.
profectus/src/features/grids/grid.ts:230
• Optional
getCanClick: CellComputable
<boolean
>
A computable to determine if a cell can be clicked.
profectus/src/features/grids/grid.ts:234
• Optional
getClasses: CellComputable
<Record
<string
, boolean
>>
A computable to get the CSS classes for a cell.
profectus/src/features/grids/grid.ts:240
• getDisplay: CellComputable
<CoercableComponent
>
A computable to get the display component for a cell.
profectus/src/features/grids/grid.ts:244
• getStartState: Computable
<State
> | (id
: string
| number
) => State
A computable to get the initial persistent state of a cell.
profectus/src/features/grids/grid.ts:236
• Optional
getStyle: CellComputable
<StyleValue
>
A computable to get the CSS styles for a cell.
profectus/src/features/grids/grid.ts:238
• Optional
getTitle: CellComputable
<CoercableComponent
>
A computable to get the title component for a cell.
profectus/src/features/grids/grid.ts:242
• Optional
getVisibility: CellComputable
<boolean
| Visibility
>
A computable to determine the visibility of a cell.
profectus/src/features/grids/grid.ts:232
• Optional
onClick: (id
: string
| number
, state
: State
, e?
: MouseEvent
| TouchEvent
) => void
▸ (id
, state
, e?
): void
A function that is called when a cell is clicked.
Name | Type |
---|---|
id | string | number |
state | State |
e? | MouseEvent | TouchEvent |
void
profectus/src/features/grids/grid.ts:246
• Optional
onHold: (id
: string
| number
, state
: State
) => void
▸ (id
, state
): void
A function that is called when a cell is held down.
Name | Type |
---|---|
id | string | number |
state | State |
void
profectus/src/features/grids/grid.ts:248
• rows: Computable
<number
>
The number of rows in the grid.
profectus/src/features/grids/grid.ts:228
• Optional
visibility: Computable
<boolean
| Visibility
>
Whether this grid should be visible.