newWidthForAttributeColumn()
Home > @gooddata/sdk-ui-pivot > newWidthForAttributeColumn
newWidthForAttributeColumn() function
Creates width item that will set width of a column which contains values of a row attribute.
Signature:
export declare function newWidthForAttributeColumn(attributeOrId: IAttribute | string, width: number, allowGrowToFit?: boolean): IAttributeColumnWidthItem;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
attributeOrId |
IAttribute | string |
Attribute specified 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: