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.
Parameter/Type | Description |
---|---|
tableSizes TableSizesObject | Contains new values for table sizes. |
1) Set width of a column with a certain index:
pivot.setTableSizes({
"columns": [
{
"idx": 0,
"width": 160
}
]
});
See the full code on JSFiddle.
2) Set height of a row containing a certain member:
pivot.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:
pivot.setTableSizes({
"columns": [
{
"tuple": ["country.[germany]"],
"measure": {
"uniqueName": "Price",
"aggregation": "sum"
},
"width": 160
}
]
});
See the full code on JSFiddle.