newWidthForSelectedColumns()
Home > @gooddata/sdk-ui-pivot > newWidthForSelectedColumns
newWidthForSelectedColumns() function
Creates width item that will set width for all columns containing values of the provided measure.
Signature:
export declare function newWidthForSelectedColumns(measureOrId: IMeasure | string, locators: IAttributeColumnLocator[], width: number | "auto", allowGrowToFit?: boolean): IMeasureColumnWidthItem;
Parameters
Parameter | Type | Description |
---|---|---|
measureOrId | IMeasure | string | Measure specified either by value or by localId reference |
locators | IAttributeColumnLocator[] | Attribute locators to narrow down selection |
width | number | "auto" | Width in pixels |
allowGrowToFit | boolean | (Optional) indicates whether the column is allowed to grow if the table's growToFit is enabled |
Returns:
Remarks
See also newAttributeColumnLocator() to learn more about the attribute column locators.