Hi all,
I’d like to ask you about an ability of adding widgets dynamically.
layout.js - So, let’s admit we have two column layout without any content.
login-form.js - In another file I’d like to add some form into first column of layout (form.js).
register-form.js - In this file I’d like to add another form into first column but on the same row like previous form.
content.js - In this file I’d like to add some content.
I can always load layout.js and content.js but I couldn’t load one of form.
Could you help how to implement this with exists functionality.
Thanks in advance!
you can call addView|removeView API ( layouts, tabviews, multiviews, etc. ) to add new view
you can call webix.ui(config, target_view) to replace target view with new one
you can call webix.ui([config1, config2], target_layout_view) to replace all views in layout with new set
It must be enough to dynamically add | replace views. Still it is no so convenient in case of big app. We have some in-house solution for building big apps with dynamic UI by combining MVC routing, auto-loading with RequireJS and Webix UI. If you interested then I can share a demo ( it doesn’t have a good documentation though )