Contains all the tabs of a spec's resources.
Extends
- dijit/_WidgetBase
- dijit/_TemplatedMixin
Requires
- module:explorer/widgets/editorarea/GadgetEditor
- module:explorer/widgets/editorarea/HtmlEditor
- module:explorer/widgets/editorarea/CssEditor
- module:explorer/widgets/editorarea/JSEditor
- module:explorer/widgets/editorarea/JSONEditor
Methods
-
addTab(tab)
-
Adds a tab to the dom. Also adds a activation listener to the tab.
Parameters:
Name Type Description tab
EditorTab The EditorTab to add. - Source:
-
getGadgetSpec() → {Object}
-
Gets a spec's title and resources as a JSON.
- Source:
Returns:
The gadgetspec's data.- Type
- Object
-
refreshEditors()
-
Refreshes each EditorTab.
- Source:
-
removeAllTabs()
-
Destroys each EditorTab and resets the tabs array.
- Source:
-
tabActivated() → {Function}
-
A callback function that returns a function that deactivates all tabs in EditorTabs.
- Source:
Returns:
Deactivates all the tabs in EditorTabs.- Type
- Function