Hello. I have answer from server(array).
How display so many labels how array.langth()?
https://snippet.webix.com/azdyxhsy
for example, array langth = 3, i need 4 labels in window.
Hello,
If you want to define labels of form inputs, you can do it
-
via define() + refresh()
https://snippet.webix.com/5noqunm2 -
Or you can make an Ajax request firstly, get the response, then generate form configuration and then call
webix.ui
:
webix.ajax("url").then(function(data){
var array = data = data.json();
array = ["name", "movie"]; //test data
var form = {view:"form", elements:[]};
for(var i = 0; i<array.length; i++){
form.elements.push({view:"text", name:array[i], label:array[i]});
}
webix.ui(form);
})