@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
62 lines (61 loc) • 2.52 kB
TypeScript
import * as React from 'react';
import { AdaptableApi } from '../../../Api/AdaptableApi';
import { CellBoxStyle, CellFontStyle } from '../../../AdaptableState/Common/AdaptableStyle';
export interface StyledColumnFontStyleEditorProps {
api: AdaptableApi;
/** Current Font slice (may be undefined / partial). */
value: CellFontStyle | undefined;
/**
* Called whenever the Font slice changes. Pass `undefined` to clear it
* entirely (e.g. when the user resets all fields).
*/
onChange: (next: CellFontStyle | undefined) => void;
disabled?: boolean;
/**
* When true, the Alignment row is omitted entirely. Used by Styled Columns
* that own horizontal alignment elsewhere (e.g. Badge row layout).
*/
hideAlignment?: boolean;
}
export declare const StyledColumnFontStyleEditor: React.FunctionComponent<StyledColumnFontStyleEditorProps>;
export interface StyledColumnCellStyleEditorProps {
api: AdaptableApi;
/** Current Cell slice (may be undefined / partial). */
value: CellBoxStyle | undefined;
/**
* Called whenever the Cell slice changes. Pass `undefined` to clear it
* entirely (e.g. when the user resets all fields).
*/
onChange: (next: CellBoxStyle | undefined) => void;
disabled?: boolean;
}
/**
* Compact editor for the `Cell` slice (`CellBoxStyle`).
*
* Used by Styled Column wizards (Rating, Sparkline) that own a `Cell?`
* slot. Any change emits a new `CellBoxStyle` (or `undefined` once every
* key is unset) which the host wizard merges back into its `*Style` patch.
*/
export declare const StyledColumnCellStyleEditor: React.FunctionComponent<StyledColumnCellStyleEditorProps>;
/**
* Descriptive font properties for summary panels (`Label: value` strings).
*/
export declare const getCellFontStyleSummaryItems: (font: CellFontStyle | undefined) => {
label: string;
value: string;
}[];
/**
* Compact summary tags for the Font slice; used by wizard summary panels.
*/
export declare const renderFontStyleSummaryTags: (font: CellFontStyle | undefined) => React.JSX.Element | null;
/**
* Descriptive cell box properties for summary panels (`Label: value` strings).
*/
export declare const getCellBoxStyleSummaryItems: (cell: CellBoxStyle | undefined) => {
label: string;
value: string;
}[];
/**
* Compact summary tags for the Cell slice; used by wizard summary panels.
*/
export declare const renderCellStyleSummaryTags: (cell: CellBoxStyle | undefined) => React.JSX.Element | null;