javascript - How to call dojo function on JSON object -
i working on project in dojo
, struck @ point.
i using dgrid in dojo generate table , need have checkbox in first column.
here code working fine requirement different.
i taking values headers , data json
file
here json file abc.json :
{ "properties": { "dataloading": "full", "classnames": ["abc"], "autorefresh": 60, "sort" : [ {"attribute":"raisetime", "decending":true} ] }, "columns": [ [[ { "field":"abc","label":"my label","sortable":true }, { "field":"def","label":"second label","sortable":true } ]], [[ { "field":"fgh", "label":"third label","sortable":true }, { "field":"ijk", "label":"fourth label","sortable":true } ]]]
}
but have checkbox feature in table should have :
var grid = new selectiongrid({ columns: [ selector({ label: '' }), { field: 'firstname', label: 'first name', sortable: false }, { field: 'lastname', label: 'last name', sortable: false } ], selectionmode: 'none' }, 'grid');
so, in json
need call selector()
on label. how can in json
? there way?
Comments
Post a Comment