Hello,
I’m new with dhtmlx and I don’t understand the way to include a tabbar or a grid with a container in a form
Here are my pieces of code :
A function “createclient” in charge to show a window with a form to get clients information :
[code]function createClient() {
dhxWins = new dhtmlXWindows();
detailWin = dhxWins.createWindow(“detailWin”, 80, 80, 790, 320);
detailWin.setText(“Création d’un nouveau client”);
detailWin.center();
detailWin.setModal(true);
detailForm = detailWin.attachForm();
detailForm.loadStruct(“json/testclient.json”);
tabaddress = new dhtmlXTabBar(detailForm.getContainer("myContainer"));
tabaddress.setSkinColors("#FCFBFC","#F4F3EE");
tabaddress.addTab("a1", "Tab 1-1");
tabaddress.addTab("a2", "Tab 1-2");
tabaddress.addTab("a3", "Tab 1-3");
;
};
[/code]
a testclient.json file to load the structure of the form :
[
{type: "settings", position: "label-left", labelWidth: 90, inputWidth: 130},
{type: "input", label: "Nom", value: "", name: "Nom"},
{type: "container", label: "Adresses", value: "Testi", name: "myContainer", inputWidth: "500", inputHeight: "300"}
]
It’s simplified for testing.
What I’m doing wrong because the label is shown but nothing else.
Thanks for your help