hello,I am using a form with multiple textfields and links. I am trying to populate label and textfileds with dynamic values.I am able to populate in textfields but not in label.Can you please suggest some method to populate the label with dynamic value from a json array.
You can change any property of the view, by using
view.config.property = "new value";
view.refresh();
it works for both label views, and labels of inputs.
http://webix.com/snippet/b0d2d95a
Hi,my requirement is to populate label value dynamically from json array.not hardcoding like “new value”.
above is just a sample, in real life it can be
webix.ajax("some.jsp", function(text, data){
//assuming that server responds with "{ value:'abc' }"
var server = data.json();
$$("l1").config.label = server.value;
$$("l1").refresh();
}