Hello, I am just started using webex, and its little difficult for beginner to understand how to manage that all stuff together. I look samples but still flustrating, how to do that properly.
So, I am trying to build simple app, that should have functionality as CRM:
- user creation/deletion/amendment
- role creation/deletion/amendment
- info page per user (contacts, picture etc.)
- another pages
Interface will be similar to admin dashboard (on top should be header, left menu, main output window, bottom line)
so I would like - then I am creating user to assign him to role, and depending on his role permission show/hide menu items to that he dont have access. And my frustration is how to organize that in one webix.ui() function in external .js file
I expect to create a separate function that will create each portion of ui: header bar, menu item etc, then do a check if that menu item role allow that user see it, and “compile” ui depending on that. but cant manage how to implement that.
currently I have webix.ui in external file already and all variation of pages per role with different functions (simple user page include ui only with general info and user profile menu, moderator page have buttons to edit users, admin page include all stuff) but that doesn’t look like right.
Could you please advise how I can build a ui “on-the-fly” something like
if user role is admin then ui = header, left menu, bottom, page1, page2, page3 in terms of webix?