Skip to content

@revolist/revogrid / JSX / RevogrFocus

Interface: RevogrFocus

Focus component. Shows focus layer around the cell that is currently in focus.

Example

ts
focus-rgCol-rgRow

Properties

PropertyTypeDescriptionDefined in
colDataObservable<DSourceState<ColumnRegular, DimensionCols>>Column sourcesrc/components.d.ts:1778
colTypeDimensionColsColumn typesrc/components.d.ts:1782
dataStoreObservable<DSourceState<DataType, DimensionRows>>Data rows sourcesrc/components.d.ts:1786
dimensionColObservable<DimensionSettingsState>Dimension settings Xsrc/components.d.ts:1790
dimensionRowObservable<DimensionSettingsState>Dimension settings Ysrc/components.d.ts:1794
focusTemplate?null | FocusTemplateFuncFocus template custom function. Can be used to render custom focus layer.src/components.d.ts:1798
onAfterfocus?(event: RevogrFocusCustomEvent<FocusAfterRenderEvent>) => voidUsed to setup properties after focus was renderedsrc/components.d.ts:1802
onBeforefocusrender?(event: RevogrFocusCustomEvent<FocusRenderEvent>) => voidBefore focus render event. Can be prevented by event.preventDefault(). If preventDefault used slot will be rendered.src/components.d.ts:1806
onBeforescrollintoview?(event: RevogrFocusCustomEvent<{ el: HTMLElement; }>) => voidBefore focus changed verify if it's in view and scroll viewport into this view Can be prevented by event.preventDefault()src/components.d.ts:1810
rowTypeDimensionRowsRow typesrc/components.d.ts:1814
selectionStoreObservable<SelectionStoreState>Selection, range, focus for selectionsrc/components.d.ts:1818

Revogrid is a MIT-licensed open source library made by Revolist OU.