Skip to content

Instantly share code, notes, and snippets.

Created June 27, 2013 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8a2e0ce4c5cf8ba934ef to your computer and use it in GitHub Desktop.
Save anonymous/8a2e0ce4c5cf8ba934ef to your computer and use it in GitHub Desktop.
Tab Initialize Extension
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