import{_ as e,c as t,o as a,N as r}from"./chunks/framework.0799945b.js";const g=JSON.parse('{"title":"Interface: BaseGrid","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/features/grids/grid.BaseGrid.md","lastUpdated":null}'),o={name:"api/interfaces/features/grids/grid.BaseGrid.md"},d=r('
features/grids/grid.BaseGrid
The properties that are added onto a processed BoardOptions to create a Board.
• [Component]: GenericComponent
The Vue component used to render this feature.
profectus/src/features/grids/grid.ts:270
• [GatherProps]: () => Record
<string
, unknown
>
▸ (): Record
<string
, unknown
>
A function to gather the props the vue component requires for this feature.
Record
<string
, unknown
>
profectus/src/features/grids/grid.ts:272
• cellState: Persistent
<Record
<string
| number
, State
>>
The persistent state of this grid, which is a dictionary of cell states.
profectus/src/features/grids/grid.ts:266
• cells: Record
<string
| number
, GridCell
>
A dictionary of cells within this grid.
profectus/src/features/grids/grid.ts:264
• getID: (id
: string
| number
, state
: State
) => string
▸ (id
, state
): string
Get the auto-generated ID for identifying a specific cell of this grid that appears in the DOM. Will not persist between refreshes or updates.
Name | Type |
---|---|
id | string | number |
state | State |
string
profectus/src/features/grids/grid.ts:258
• getState: (id
: string
| number
) => State
▸ (id
): State
Get the persistent state of the given cell.
Name | Type |
---|---|
id | string | number |
profectus/src/features/grids/grid.ts:260
• id: string
An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates.
profectus/src/features/grids/grid.ts:256
• setState: (id
: string
| number
, state
: State
) => void
▸ (id
, state
): void
Set the persistent state of the given cell.
Name | Type |
---|---|
id | string | number |
state | State |
void
profectus/src/features/grids/grid.ts:262
• type: typeof GridType
A symbol that helps identify features of the same type.