Hi Guys,
I’m trying to insert a counter inside a window with a start value, but when a insert a name property in this counter the start value returns to 0. Why?
For example:
In this example: Windows: Form inside
If a change the code like below the counter shows 0, not 550:
var form = {
view:"form",
borderless:true,
elements: [
{ view:"text", label:'Login', name:"login" },
{ view:"text", label:'Email', name:"email" },
{ view:"counter", label:"First age", value: 550, name: "myCounter"},
{ view:"button", value: "Submit", click:function(){
if (this.getParentView().validate()){ //validate form
webix.message("All is correct");
this.getTopParentView().hide(); //hide window
}
else
webix.message({ type:"error", text:"Form data is invalid" });
}}
],
rules:{
"email":webix.rules.isEmail,
"login":webix.rules.isNotEmpty
},
elementsConfig:{
labelPosition:"top",
}
};
Please someone can help me?
Thanks for all,
Cheers,