Grid API
ThemeApi
API for managing themes in Graphite Grid.
Properties
- Name
addOrUpdateCellThemeVariant
- Type
- (key: string, theme: Partial<CellTheme>) => void
- Description
Adds or updates a cell theme variant.
- Name
addOrUpdateGridHeaderThemeVariant
- Type
- (key: string, theme: Partial<HeaderCellTheme>) => void
- Description
Adds or updates a header cell theme variant.
- Name
addOrUpdateGridThemeVariant
- Type
- (key: string, theme: Partial<GridTheme>) => void
- Description
Adds or updates a grid theme variant.
- Name
getBaseCellTheme
- Type
- () => CellTheme
- Description
Gets the base cell theme.
- Name
getBaseGridTheme
- Type
- () => GridTheme
- Description
Gets the base grid theme.
- Name
getBaseHeaderCellTheme
- Type
- () => HeaderCellTheme
- Description
Gets the base header cell theme.
- Name
getCellTheme
- Type
- (key?: null | string) => CellTheme
- Description
Gets a cell theme variant by key.
- Name
getCellThemeVariants
- Type
- () => Record<string, Partial<CellTheme>>
- Description
Gets all cell theme variants.
- Name
getCurrentCellTheme
- Type
- () => CellTheme
- Description
Gets the current cell theme.
- Name
getCurrentGridTheme
- Type
- () => GridTheme
- Description
Gets the current grid theme.
- Name
getCurrentHeaderCellTheme
- Type
- () => HeaderCellTheme
- Description
Gets the current header cell theme.
- Name
getGridTheme
- Type
- (key?: null | string) => GridTheme
- Description
Gets a grid theme variant by key.
- Name
getGridThemeVariants
- Type
- () => Record<string, Partial<GridTheme>>
- Description
Gets all grid theme variants.
- Name
getHeaderCellTheme
- Type
- (key?: null | string) => HeaderCellTheme
- Description
Gets a header cell theme variant by key.
- Name
getHeaderCellThemeVariants
- Type
- () => Record<string, Partial<HeaderCellTheme>>
- Description
Gets all header cell theme variants.
- Name
getThemeKey
- Type
- () => null | string
- Description
Gets the current theme key.
- Name
setBaseCellTheme
- Type
- (theme: Partial<CellTheme>) => void
- Description
Sets the base cell theme.
- Name
setBaseGridTheme
- Type
- (theme: Partial<GridTheme>) => void
- Description
Sets the base grid theme.
- Name
setBaseHeaderCellTheme
- Type
- (theme: Partial<HeaderCellTheme>) => void
- Description
Sets the base header cell theme.
- Name
setThemeKey
- Type
- (key: null | string) => void
- Description
Sets the current theme key.