UNPKG

@anglr/grid

Version:
42 lines 1.76 kB
import { Grid, SimpleOrdering } from '../interfaces'; import { CellContextFactoryFn, DataCellContextFactoryFn } from './types'; /** * Applies block of row selection to grid, if row was not selected checkbox change event will be blocked * @param grid - Instance of grid which is used * @param itm - Data item for row * @param event - Mouse event that occured */ export declare function applyRowSelectionBlock<TItem>(grid: Grid, itm: TItem, event: MouseEvent): void; /** * Serialize ordering * @param ordering - Ordering to be serialized */ export declare function serializeSimpleOrdering(ordering: SimpleOrdering): string | null; /** * Deserialize ordering * @param ordering - Ordering as string to be deserialized */ export declare function deserializeSimpleOrdering(ordering: string): SimpleOrdering | null; /** * Creates context object for cell in grid * @param grid - Instance of grid * @param plugins - Instances of all plugins * @param index - Index of current row in header * @param columnMetadata - Metadata for column */ export declare const cellContextFactory: CellContextFactoryFn; /** * Creates context object for data cell in grid * @param grid - Instance of grid * @param plugins - Instances of all plugins * @param data - Data for row that is being rendered * @param index - Index of current row in header * @param columnMetadata - Metadata for column */ export declare const dataCellContextFactory: DataCellContextFactoryFn; /** * Transforms row columns attribute value into row columns value * @param value - Value to be transformed as row columns attribute */ export declare function rowColumnsAttribute(value: string | undefined | null | string[]): string[] | undefined | null; //# sourceMappingURL=utils.d.ts.map