open

The dashly.open() method is used to manage the opening of dialogs and switching to social media screens in the Dashly app. This method provides flexibility in navigating dialogs and social media screens, improving the user experience in the Dashly app. The function can accept an object with parameters that determine what action will be performed.

Capabilities

  1. Open new conversation: To open a new conversation, you must pass an object with the conversation: 'new' parameter. This will create and open a new dialog window.
dashly.open({conversation: 'new'})
  1. Open social network screen: You can specify one of the supported social networks ('vk', 'facebook', 'instagram', 'telegram', 'viber', 'whatsapp') to go to the corresponding screen. Example for going to the VKontakte screen:
dashly.open({conversation: 'vk'})
  1. Open start screen: If the conversation parameter is not specified or is specified incorrectly, the method will open the standard start screen. Example, if the parameter is missing:
dashly.open()

Example, with an invalid parameter:

dashly.open({conversation: 'unknown'})