Module: explorer/widgets/editorarea/EditorTab

explorer/widgets/editorarea/EditorTab

A Clickable tab representing a particular resource of a spec.
Source:
See:

Extends

  • dijit/_WidgetBase
  • dijit/_TemplatedMixin

Methods

activate()

Activation handler for when the tab is clicked. Shows the code for the particular tab.
Source:

addPreActivationListener(listener)

Adds a listener function to the instance variable preActivationListeners.
Parameters:
Name Type Description
listener Function A callback function that deactivates all other tabs when this tab is clicked.
Source:

deactivate()

Deactivation handler for when a different tab is clicked. Hides the code for the particular tab.
Source:

destroy()

Destroys this instance of EditorTab. For testing purposes.
Source:

getEditor() → {Editor}

Getter method for the editor.
Source:
Returns:
The editor corresponding to the tab.
Type
Editor

getResource() → {Object}

Gets the spec's resource for this particular tab.
Source:
Returns:
Object containing the content and name of the tab's resource.
Type
Object

postCreate()

Called right before widget is added to the dom. See link for more information.
Source:
See: