1 | /**
|
2 | * Calculates the Total Flex Grow
|
3 | */
|
4 | export declare function getTotalFlexGrow(columns: any[]): number;
|
5 | /**
|
6 | * Adjusts the column widths.
|
7 | * Inspired by: https://github.com/facebook/fixed-data-table/blob/master/src/FixedDataTableWidthHelper.js
|
8 | */
|
9 | export declare function adjustColumnWidths(allColumns: any, expectedWidth: any): void;
|
10 | /**
|
11 | * Forces the width of the columns to
|
12 | * distribute equally but overflowing when necessary
|
13 | *
|
14 | * Rules:
|
15 | *
|
16 | * - If combined withs are less than the total width of the grid,
|
17 | * proportion the widths given the min / max / normal widths to fill the width.
|
18 | *
|
19 | * - If the combined widths, exceed the total width of the grid,
|
20 | * use the standard widths.
|
21 | *
|
22 | * - If a column is resized, it should always use that width
|
23 | *
|
24 | * - The proportional widths should never fall below min size if specified.
|
25 | *
|
26 | * - If the grid starts off small but then becomes greater than the size ( + / - )
|
27 | * the width should use the original width; not the newly proportioned widths.
|
28 | */
|
29 | export declare function forceFillColumnWidths(allColumns: any[], expectedWidth: number, startIdx: number, allowBleed: boolean, defaultColWidth?: number): void;
|