getService

returns a service available for File Manager

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

Example

const backend = $$("fm").getService("backend");

Related samples

Details

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

File Manager has access to the following services:

  • "local" - works with the client data;
  • "upload" - uploads files to the server;
  • "progress" - visualizes progress of operations on the client;
  • "operations" - synchronizes the backend data with the client data;
  • "backend" - works with the backend server.
See also
Back to top