Hello everyone,
I’m using the Webix User Manager widget in my project, and I want to either hide or completely remove the “Rules” section from the UI (highlighted in the screenshots below).
Thanks in advance for any tips or guidance!
Hello everyone,
I’m using the Webix User Manager widget in my project, and I want to either hide or completely remove the “Rules” section from the UI (highlighted in the screenshots below).
Thanks in advance for any tips or guidance!
Hello yadav,
The Usermanager and most of our complex widgets (except Kanban and Spreadsheet) are built as modularized apps on Webix Jet , and the user can customize existing modules or add new ones.
Modules are implemented as JetViews (ES6 classes) where any UI element, data-related service, or feature can be customized by the same rules. For more details about this architecture, please check the following blog article , which describes the general idea and reasons for this structure.
Please note that complex modifications may require observing the source code of the tool in order to build the most feasible solution that will correctly alter/extend the original logic.
To remove the “Rules” section from the details we need to customize its userManager.views[“users/details”] and userManager.views[“roles/details”] .
Here we need to redefine the GetListsHTML method which builds a structure for the lists in the role information and user information panels. Inside this method this.GetAssignments(user, rolesData, rulesData);
returns an object that contains arrays of information associated with the current role and current user. Using it we can configue the template we need.
Please take a look at the example: Code Snippet