4 * Copyright 2009, Moxiecode Systems AB
5 * Released under LGPL License.
7 * License: http://tinymce.moxiecode.com/license
8 * Contributing: http://tinymce.moxiecode.com/contributing
12 * This class is used to create vertical separator between other controls.
14 * @class tinymce.ui.Separator
15 * @extends tinymce.ui.Control
17 tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
19 * Separator constructor.
23 * @param {String} id Control id to use for the Separator.
24 * @param {Object} s Optional name/value settings object.
26 Separator : function(id, s) {
28 this.classPrefix = 'mceSeparator';
29 this.setDisabled(true);
33 * Renders the separator as a HTML string. This method is much faster than using the DOM and when
34 * creating a whole toolbar with buttons it does make a lot of difference.
37 * @return {String} HTML for the separator control element.
39 renderHTML : function() {
40 return tinymce.DOM.createHTML('span', {'class' : this.classPrefix, role : 'separator', 'aria-orientation' : 'vertical', tabindex : '-1'});