API reference
Table of contents

setTableSizes

setTableSizes(tableSizes: TableSizesObject)

[starting from version 2.8.19]

Sets table sizes for the component. Use this method to set table sizes without updating the report.

When called, the setTableSizes() method overwrites previously set table sizes.

Parameters

Parameter/Type Description
tableSizes
TableSizesObject
Contains new values for table sizes.

Examples

1) Set width of a column with a certain index:

flexmonster.setTableSizes({
"columns": [
{
"idx": 0,
"width": 160
}
]
});

See the full code on JSFiddle.

2) Set height of a row containing a certain member:

flexmonster.setTableSizes({
"rows": [
{
"tuple": ["category.[cars]"],
"height": 80
}
]
});

See the live sample on JSFiddle.

3) Set width of a column containing a certain member and measure:

flexmonster.setTableSizes({
"columns": [
{
"tuple": ["country.[germany]"],
"measure": {
"uniqueName": "Price",
"aggregation": "sum"
},
"width": 160
}
]
});

See the full code on JSFiddle.

See also

getTableSizes
getReport
setReport