User manual

© 2011 Racktivity NV 127/160
Antwerpsesteenweg 19 - 9080 Lochristi - Belgium - www.racktivity.com v 2014.5.14
based on the options specified in "formatoptions" section.
For this type of formatting there are 3 possible options:
link: specifies the key name from "data" section that contains the link for this table cell.
prefix: contains a string that will be prepended for each link.
suffix: contains a string that will be appended to each link.
The second column has a different formatting called "wizard".
This type of formatting takes these options:
"formatoptions": {
"title": "Example Wizard",
"name": "example_wizard",
"domain":"racktivity",
"type":"button",
"callback":"refresh"
}
Basically, this type of formatting creates a wizard macro in each cell from "Description"
column. "formatoptions" section contains the default parameters for all created wizards.
These parameters are overridden by the ones specified inside the "data" section.
There are more formatting options available besides these two ones because the grid
macro also supports jqgrid macro formatting options.
Example
[[grid]]
{
"width": 601,
"name": "",
"pagesize": 10,
"hidetitlebar": true,
"autowidth": true,
"drag_opts": {"hoverClass": "nohover"},
"data": [
{"path": "MacroJqPlot", "Doc Page": "JqPlot Macro", "Wizard
Example": {"extra":{"a":"b"}}},
{"path": "MacroOscilloscope", "Doc Page": "Oscilloscope Macro",
"Wizard Example": {"extra":{"a":"b"}}},
{"path": "MacroLinegraph", "Doc Page": "Line Graph Macro", "Wizard
Example": {"extra":{"a":"b"}}}
],
"model": [
{
"sortable": true,
"formatter": "pagelink",
"formatoptions": {
"link":"path",
"prefix":"#/Doc/"
}
},
{
"sortable": false,
"formatter": "wizard",
"formatoptions": {
"title": "Example Wizard",
"name": "example_wizard",
"domain":"racktivity",