getService

returns a service available for Desktop

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

Example

const windows = $$("mydesktop").getService("windows");

Details

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

Desktop has access to the following services:

  • local - works with apps;
  • windows - works with app windows;
  • helpers - visualization helpers.
Back to top