Dynamic View

Hi Webix Team,

I want to create a view according to the object which may have any number of properties.

Eg. Obj={
“id”:“1”,
“name”:“Test”,
“city”:[“a”, “b”]
}

This object may have any number of properties.

According to this object I want to create a form like structure, where if my attribute has only one value then I have to show the simple text box with its lable like (id/name as in object), but if I have an object attribute with multiple values then I have to show a combo box with label (like city as in object).

Can you please provide me the solution for such dynamic view creation.

Can you please provide me the sample snippet?

Not sure it will be an exact solution, but we have an article in our blog dedicated to the dynamic form constructor. You can use the existing solution or customize it to meet your requirements.