Hi WebDataRocks Team,
As attach, I have several filtered filters, how can I clean them all at a time?
And the second question is how can I adjust the first two rows width to a fixed value by CSS?
Hello, Jacinth,
Thank you for your question.
You can simply clean the desired filters using the following method:
webdatarocks.clearFilter('Your-field-name');
Get desired fields using webdatarocks.getAllHierarchies
, webdatarocks.getRows
or webdatarocks.getColumns
methods.
Adjusting the row’s height can be simply implemented with the tableSizes
object which is the property of a report
object. In your case we kindly recommend use the following instruction:
tableSizes
object inside your report
object.
tableSizes
object create an array named columns
.
columns
array place object with following properties:
idx
– Number. Index of the row, starts from 0.width
– Number. Row height in pixels.
You can also use a tuple
property of the tableSizes
object represented as an array. It consists of unique names that identifies the row in the table based on data in it.
The same procedure can be made on rows
, but only row’s height can be modified.
Find out an example demonstrating the resolution for both your questions by following the link: https://codepen.io/webdatarocks/pen/bGGvONZ.
Feel free to contact us in case of questions occurs.
Kind regards,
WebDataRocks Team
Hi WRD teams,
thanks for the reply, I adjust the column width and save as “report.json” then I knew and learned how to use those properties.
But how can I change writing-mode (from horizontal to vertical) of the content in column without use CSS?
Hello, Jacinth,
Unfortunately, the current version does not implement the feature of the vertical content orientation.
Kind regards,
WebDataRocks team