new Workspace()
Access to the Workspace in which the editor is opened.
- Source:
Classes
Members
-
<static> EventType :string
-
The types of the Workspace events.
Type:
- string
- Source:
Properties:
Name Type Default Description BEFORE_EDITOR_LOADED
string before_editor_loaded Triggered before the editor content was loaded. See the sync.api.Workspace.BeforeEditorOpenedEvent description for more details. EDITOR_LOADED
string editor_loaded Triggered after the editor was loaded.
Methods
-
createDialog() → {sync.api.Dialog}
-
Creates a dialog that can have custom content and behavior. The advandatage of using this method is that the dialog will have a consistent appearance with the rest of the application and that it will work on all devices supported by the WebApp.
- Source:
Returns:
The dialog.- Type
- sync.api.Dialog
-
setUrlChooser(urlChooser)
-
Sets the URL chooser used when the user is asked to provide and URL. When there is not chooser set, the user will usually have to enter the URLs in a text field.
Parameters:
Name Type Description urlChooser
sync.api.UrlChooser The URL chooser to set. - Source: