import { StyledContainerBase, StyledContainerConfig } from "../../ui"; import { Instance } from "../../ui/Instance"; import { BooleanProp, NumberProp, Prop, StringProp } from "../../ui/Prop"; import { RenderingContext } from "../../ui/RenderingContext"; export interface GridCellConfig extends StyledContainerConfig { /** Selector used to obtain the value that should be displayed inside the cell. Not required if `field` is used. */ value?: StringProp | NumberProp; /** Selector used to obtain the weight of the cell in aggregate operations, such as weighted averages. */ weight?: Prop; /** Add default padding to grid cell. */ pad?: BooleanProp; /** Format specifier used to convert the value into a string. */ format?: StringProp; /** Name of the field that holds the value to be displayed. */ field?: string; /** Record alias. Default is `$record`. */ recordName?: string; /** Record alias. Default is `$record`. */ recordAlias?: string; /** Indicate if a cell is editable or not. Default value is true. */ editable?: boolean; /** * Used to indicate that the adjacent cells in the column should be merged together. * If set to `same-value`, only cells with the same value will be merged. * If set to `always`, all cells within the group will be merged. * This is an experimental feature that might not work well with other * grid related features such as multi-line rows, buffered rendering, etc. */ mergeCells?: Prop<"same-value" | "always">; /** Aggregate value for the cell. */ aggregateValue?: Prop; /** Column span. */ colSpan?: NumberProp; /** Row span. */ rowSpan?: NumberProp; /** Whether the column is fixed. */ fixed?: BooleanProp; /** Cell alignment. */ align?: "left" | "right" | "center"; /** Editor widget for cell editing. */ editor?: any; /** Unique column identifier. */ uniqueColumnId?: string; } export declare class GridCell extends StyledContainerBase { value?: StringProp | NumberProp; field?: string; recordName?: string; editable?: boolean; align?: "left" | "right" | "center"; editor?: any; uniqueColumnId?: string; pad?: boolean; fixed?: boolean; merged?: boolean; constructor(config?: GridCellConfig); declareData(...args: any[]): void; init(): void; prepareCSS(context: RenderingContext, instance: Instance): void; render(context: RenderingContext, instance: Instance, key: string): { atomic: boolean; content: any; instance: Instance>; data: Record; key: string; uniqueColumnId: string | undefined; }; } //# sourceMappingURL=GridCell.d.ts.map