HTML ViewData
Overview
The view data tags create a tabular view of a dataset in your workspace.
View Data
The simple view data tag looks like the following:
<view-data data-name="name"/>
The only requirement is that the name of the dataset needs to be specified.
Configurable View Data
In addition to the simple view data tags, you can pass in configuration information that
will configure how the data is displayed.
<view-data class="view-data" style="height:400px;" type="application/json">
{
"sortable": true,
"filterable": true,
"altrows": true,
"columnsresize": true,
"defaultwidth": "160px",
//"data": "category"
}
</view-data>
Pivot Data
<pivot-table class="pivot-table" style="height:400px;" type="application/json">
{
/*
SAMPLE:
"data":"data",
"fields":{
"columns":["product"],
"rows":["salesperson"],
"values":[{"id":"value","method":"sum"}]
}
*/
},
</pivot-table>