Dear Servoy developer
I try to write code to get all subforms of an NG form. The form contains a bootstrapcomponents-tabpanel with three tabs.
How can I get the tabs of that JSWebComponent?
Thanks for any help!
Regards
for (var i = 0; i < elements.tabpanel.tabs.length; i++) {
var tab = elements.tabpanel.getTabAt(i + 1);
application.output(tab.containedForm);
}
var jsForm = solutionModel.getForm(formName);
var components = jsForm.getComponents();
for (var i in components) {
/** @type {JSComponent} */
var c = components[i];
if (c['typeName'] && c['typeName'] == 'bootstrapcomponents-tabpanel') {
// c is a tab panel. How do I get the tabs???
}
}
c.getJSONProperty("tabs")
var components = jsForm.getWebComponents();
Users browsing this forum: No registered users and 16 guests