Posted 22 January 2019, 3:11 am EST
Hi, How to define pivot panel fields and their format with custom header if i set autoGenerateFields to false.
For now it takes all keys in the datasource obj. But i want to show only 5-6 fields only out of 10 from datasource. And also how to define their format like currency, number, percentage and date.
Also after defining these then how to add few of the fields to rowFields & valueFields of Pivot Panel.
For Example :
let dataSource = [
{id : 1, name : “Persone Name”, age : 30, dateOfBirth : ‘10/12/1880’, assets : 43724637 },
{id : 1, name : “Persone Name”, age : 30, dateOfBirth : ‘10/12/1880’, assets : 43724637 },
{id : 1, name : “Persone Name”, age : 30, dateOfBirth : ‘10/12/1880’, assets : 43724637 },
…
…
]
I want to show only Name, Age & Assets with type String, Number & currency respectively. And different header instead of Name, Age & Assets.
And i want to add name in the rowFields & assets in the valueFields.
Let me know how to do that.
