getService

returns a service available for ToDo

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

Example

const data = $$("todo").getService("local");

Details

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

ToDo has access to the following services:

  • backend - works with the backend server (optional)
  • local - works with the client data
  • operations - synchronizes the backend data with the client data
  • helpers - provides context menu data
Back to top