getService

returns a service available for User Manager

object getService(string service);
servicestringthe service name
objectthe object with the service methods

Example

const data = $$("um").getService("local"); 
  // getting the 'users' collection
  const collection = data.users();

Related samples

Details

Services are major blocks of inner logic of the widget. Their methods can be called directly as well as customized.

User Manager has access to the following services:

  • Local - works with the client-side data;
  • Operations - synchronizes the backend data with the client data;
  • Prompt - service for adding new reports (User/Role by default) via a dialog;
  • Progress - visualizes progress of operations on the client;
  • Backend - works with the backend server.
See also
Back to top