UNPKG

@adaptabletools/adaptable

Version:

Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

24 lines (23 loc) 1.25 kB
import * as React from 'react'; import { BarStyleCellTextProperties } from '../../../../../AdaptableState/StyledColumns/Common/BarStyleProperties'; import { BarStyleCellTextLabels } from '../../../../../Utilities/Helpers/StyledColumns/BarStylesHelper'; /** * Preview of the per-value cell-text layout. Renders three potential bands: * - `Above` slots (above the bar) * - `Merged` slots (overlay on top of the bar — uses `mergedOverlayClassName`) * - `Below` slots (below the bar) * * Each band has three horizontal slots (Left/Center/Right) so the spacing is * stable. When `vertical` is provided, only the band matching that value is * rendered (used by the preview cards to position bands around the bar). */ export declare const BarStyleCellTextPreview: React.FunctionComponent<{ className?: string; style?: React.CSSProperties; cellTextProperties?: BarStyleCellTextProperties; labels: BarStyleCellTextLabels; mergedOverlayClassName?: string; /** Render only the band matching this vertical position. */ vertical?: 'Above' | 'Below' | 'Merged'; }>; export declare const shouldShowBarStyleCellTextOutsideBar: (cellTextProperties: BarStyleCellTextProperties | undefined, hasCellText: boolean) => boolean;