I have a tabbar with 2 header in options.
In first tab, I have a form view. When I change something in textbox , I want to disable other tab in tabbar. Can we do it?
webix.ui({
rows:[
{view:"tabbar", id:'tabbar', value:'formView', multiview:true, options: [
{ value: 'Form', id: 'formView'},
{ value: 'Empty', id: 'emptyView'}
]},
{
cells:[
{
id:"formView",
view:"form",
width:300,
elements:[
{ view:"text", label:"Email"},
{ view:"text", type:"password", label:"Password"},
],
elementsConfig: {
bottomPadding: 18,
on: {
"onChange": function () {
},
"onKeyPress": function () {
webix.message({type:"error", text:"Want to disable Other Tab"});
}
}
}
},
{id:"emptyView", template:"Some content"}
]}
]
});