Skip to content

RevoGrid Documentation v4.31.3 / 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<ColumnProp, DataType<any, ColumnProp>>, DimensionCols>>Column sourcesrc/components.d.ts:2058
colTypeDimensionColsColumn typesrc/components.d.ts:2062
dataStoreObservable<DSourceState<DataType, DimensionRows>>Data rows sourcesrc/components.d.ts:2066
dimensionColObservable<DimensionSettingsState>Dimension settings Xsrc/components.d.ts:2070
dimensionRowObservable<DimensionSettingsState>Dimension settings Ysrc/components.d.ts:2074
focusTemplate?null | FocusTemplateFuncFocus template custom function. Can be used to render custom focus layer. Default nullsrc/components.d.ts:2079
onAfterfocus?(event: RevogrFocusCustomEvent<FocusAfterRenderEvent<DataType<any, ColumnProp>>>) => voidUsed to setup properties after focus was renderedsrc/components.d.ts:2083
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:2087
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:2091
rowTypeDimensionRowsRow typesrc/components.d.ts:2095
selectionStoreObservable<SelectionStoreState>Selection, range, focus for selectionsrc/components.d.ts:2099