DI settings¶
Connect register module in the global settings¶
Example in deploy.json¶
"modules": {
"registry": {
"globals": {
"di": {
treegridController¶
Description¶
Is for creating hierarchical lists of objects in the class collection attribute or in the class navigation.
Operates using the component dhtmlxSuite_v51_pro (https://dhtmlx.com/docs/products/dhtmlxTreeGrid/).
Connection in DI¶
"treegridController": {
"module": "applications/viewlib/lib/controllers/api/treegrid",
"initMethod": "init",
"initLevel": 0,
"options": {
"module": "ion://module",
"logger": "ion://sysLog",
"securedDataRepo": "ion://securedDataRepo",
"metaRepo": "ion://metaRepo",
"auth": "ion://auth",
"config": { // основной конфиг
"*": { // выборка объектов возможна в каждой навигации
"eventBasic@project-management":{ // выборка объектов по указанному классу
"roots":[{ // поиск корней
"property": "name",
"operation": 1,
"value": [null],
"nestedConditions": []
}],
"childs":["basicObjs"] // поиск дочерних элементов
},
Template types¶
"template": "treegrid/collection"
For a collection-attribute. Connected in the object form view:
"options": {
"template": "treegrid/collection",
"reorderable": true,
"treegrid": {
"width": "auto,100,100,100,100,0",
"align": "left, center,center,center,center, left",
"sort": "str, date, date, date, date, int",
"enableAutoWidth": false,
"paging": {
"size": 20
}
}
}
"template": "treegrid/list"
For class navigation. Connection:
"options": {
"template": "treegrid/list"
}
- Setting up
skin
https://docs.dhtmlx.com/grid__skins.html
"options" : {
...
"treegrid" : {
"skin": "material" // по умолчанию
// "skin": "skyblue"
// "skin": "terrace"
// "skin": "web"
}
}