Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:pivotsettings [2014/02/16 14:54] tony |
wiki:pivotsettings [2014/02/16 15:16] tony |
||
---|---|---|---|
Line 129: | Line 129: | ||
=== yDimension === | === yDimension === | ||
+ | The values build dynamically columns depend on the data source.\\ | ||
+ | Example: | ||
+ | \\ | ||
+ | <code javascript> | ||
+ | yDimension : [ | ||
+ | { | ||
+ | dataName: 'Country', | ||
+ | converter: function(Value, xValues) { | ||
+ | return 'Total Countryies'; | ||
+ | } | ||
+ | },{ | ||
+ | dataName: 'Country' | ||
+ | } | ||
+ | ] | ||
+ | </code> | ||
+ | |||
+ | Possible options are:\\ | ||
+ | **dataName** is a cell from data which build the column. The value of this should correspond to a name in the data source | ||
+ | \\ | ||
+ | **converter** is function which can convert the source cell data and return new value. The parameters passed to this functions are:\\ | ||
+ | * Value - the value | ||
+ | * xValues - the "static" data from the row | ||
+ | |||
+ | ==== gridoptions ==== | ||
+ | |||
+ | These options are [[ options | options of the grid]]. You can set any of them. | ||
+ | |||
+ | ==== ajaxoptions ==== | ||
+ | |||
+ | |||