Hi Webix team,
How I can make dynamic form with the help of json?
https://snippet.webix.com/t5pfybpm
Hi Webix team,
How I can make dynamic form with the help of json?
https://snippet.webix.com/t5pfybpm
You can create sub-layouts if necessary, it will require a complicated logic if you want to be flexible.
The alternative solution will be to use grid-layout, which perfectly fits your needs.
@maksim Thanks you for reply.
But I want ui from json only like sometimes in my row I want 3 cols or 4 cols.
How I can do that?
You can provide full UI config - layout with widgets and use webix.ui to construct the new UI from the incoming json
webix.ajax("form.data")
.then( data => data.json() )
.then( data => webix.ui(data, "layout1");
where data is a normal UI config and second parameter - id of layout, in which new UI need to be injected
//data
[
rows:[
{ view:"text" },
{ cols:[
{ view:"text" },
{ view:"text" }
]}
]
]