User defined class for dhxlist_base and dhxlist_base_nested

I was wondering if it was possible to create a user-defined class for dhxlist_base or dhxlist_base_nested items using the className attribute. I am populating the form from a JSON file, so I’m looking for functionality that can be added to the JSON file, not any run-time or initialization functions.

What I’m looking for is something like the className:“my_list” that I added after “list: [”

[{ type:"label", list:[ className:"my_list", { type: "label", name: "label1", className: "label1" }, { type: "newcolumn" }, { type: "label", name: "label2", className: "label2" }] }]

Thanks.

Hi

You better to redefine them in

Am I allowed to modify the within the JSON object or can that only happen within the html?