newWidthForAllColumnsForMeasure()
Home > @gooddata/sdk-ui-pivot > newWidthForAllColumnsForMeasure
newWidthForAllColumnsForMeasure() function
Creates width item that will set width for all columns containing values of the provided measure.
Signature:
export declare function newWidthForAllColumnsForMeasure(measureOrId: IMeasure | string, width: number, allowGrowToFit?: boolean): IWeakMeasureColumnWidthItem;
Parameters
Parameter |
Type |
Description |
---|---|---|
measureOrId |
IMeasure | string |
Measure specified either by value or by localId reference |
width |
number |
Width in pixels |
allowGrowToFit |
boolean |
(Optional) indicates whether the column is allowed to grow if the table's growToFit is enabled |
Returns: