Is there a way to make a reponsive form?
I don’t want to hide the form sections, but resize it. I saw in your examples that all them have a width property defined. Is there a way to do this?
But also please note that in such case the parentdiv container should have the relative size to a page, otherwise it will be adjusted to the minimal size of the form. Also, if some form’s component has a strict size, the form will adjust to it (as happened in the snippet due to the width of the last combo).
What is the best way to set up a form so that when the size is “portrait” set the labelPosition of all “label-able” (derived from webix.ui.text) elements to “top”? But set labelPosition to “left” if the size is “landscape”.
I am hoping to get this behavior when the user rotates a mobile device and the orientation has changed.
Except for webix.ui.checkbox and webix.ui.radio (maybe others?) - those labels should remain on the right.
@reycri there’s no built-in solution for such task, so it will require the manual definition oflabelPosition,labelWidth andheight properties in onRotate event.