/** * $Id: SplitButton.js 1176 2009-08-04 09:42:14Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. */ (function(tinymce) { var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each; /** * This class is used to create a split button. A button with a menu attached to it. * * @class tinymce.ui.SplitButton * @extends tinymce.ui.Button */ tinymce.create('tinymce.ui.SplitButton:tinymce.ui.MenuButton', { /** * Constructs a new split button control instance. * * @constructor * @method SplitButton * @param {String} id Control id for the split button. * @param {Object} s Optional name/value settings object. */ SplitButton : function(id, s) { this.parent(id, s); this.classPrefix = 'mceSplitButton'; }, /** * Renders the split button as a HTML string. This method is much faster than using the DOM and when * creating a whole toolbar with buttons it does make a lot of difference. * * @method renderHTML * @return {String} HTML for the split button control element. */ renderHTML : function() { var h, t = this, s = t.settings, h1; h = '