-
-
Save anonymous/8a2e0ce4c5cf8ba934ef to your computer and use it in GitHub Desktop.
Tab Initialize Extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Type.registerNamespace("UIBeardcore.Extension.Tab.Views.Tabs"); | |
/** | |
* Implements SelectAll checkbox extension. | |
* @constructor | |
*/ | |
UIBeardcore.Extension.Tab.Views.Tabs.SelectAllCheckboxExtension = function UIBeardcore$Extension$Tab$SelectAllCheckboxExtension() | |
{ | |
Tridion.OO.enableInterface(this, "UIBeardcore.Extension.Tab.Views.Tabs.SelectAllCheckboxExtension"); | |
this.addInterface("Tridion.DisposableObject"); | |
this.properties.controls = {}; | |
}; | |
/** | |
* Initialize | |
* @param {Stiting} id. The id of extended tab. | |
* @param {Tridion.Controls.DeckPage} parentTab. The reference to extended tab object. | |
*/ | |
UIBeardcore.Extension.Tab.Views.Tabs.SelectAllCheckboxExtension.prototype.initialize = function PageTypeSettingsExtended$initialize(id, parentTab) | |
{ | |
var p = this.properties; | |
p.parentTab = parentTab; | |
/** | |
* TODO: | |
* 1\ Create Input field and append it tab HTML | |
* 2\ Attach event listeners to the created input element | |
*/ | |
}; | |
/** | |
* Dispose | |
* @param {Stiting} id. The id of extended tab. | |
* @param {Tridion.Controls.DeckPage} parentTab. The reference to extended tab object. | |
*/ | |
UIBeardcore.Extension.Tab.Views.Tabs.SelectAllCheckboxExtension.prototype.disposeInterface = Tridion.OO.nonInheritable(function PageTypeSettingsExtended$disposeInterface() | |
{ | |
/** | |
* TODO: | |
* Implement disposig | |
*/ | |
}); | |
Tridion.Controls.Deck.registerInitializeExtender("GeneralTab", UIBeardcore.Extension.Tab.Views.Tabs.SelectAllCheckboxExtension); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment