Hi, guys!
I need to load data from the selected row of the table to the form. (If possible, it is dynamically create form fields)
Hi,
You can make use of data binding, which helps:
- sending data from a selected item of the component to a form;
- as well as sending the values back to a component;
Check the snippet, please http://webix.com/snippet/085f5982
Documentation: http://docs.webix.com/desktop__data_binding.html
Thx, but if I can create the form elements from the data table?
Nope, it is not possible.
You can use above described data binding or “form” editor - but in any case you will need to configure the form manually.
We have considered ability to auto-create such forms, but from our experience it can be used only for dev. prototypes. For production app you will need to adjust the auto-generated form anyway.
If you need to have some fast solution - you can just make the whole grid editable.
http://docs.webix.com/samples/15_datatable/04_editing/01_basic.html
P.S. there a form builder tool - it was created to simplify form cremating work.
http://webix.com/form-builder/