src/pyams_skin/resources/js/ext/tinymce/dev/classes/ui/Spacer.js
changeset 557 bca7a7e058a3
equal deleted inserted replaced
-1:000000000000 557:bca7a7e058a3
       
     1 /**
       
     2  * Spacer.js
       
     3  *
       
     4  * Copyright, Moxiecode Systems AB
       
     5  * Released under LGPL License.
       
     6  *
       
     7  * License: http://www.tinymce.com/license
       
     8  * Contributing: http://www.tinymce.com/contributing
       
     9  */
       
    10 
       
    11 /**
       
    12  * Creates a spacer. This control is used in flex layouts for example.
       
    13  *
       
    14  * @-x-less Spacer.less
       
    15  * @class tinymce.ui.Spacer
       
    16  * @extends tinymce.ui.Widget
       
    17  */
       
    18 define("tinymce/ui/Spacer", [
       
    19 	"tinymce/ui/Widget"
       
    20 ], function(Widget) {
       
    21 	"use strict";
       
    22 
       
    23 	return Widget.extend({
       
    24 		/**
       
    25 		 * Renders the control as a HTML string.
       
    26 		 *
       
    27 		 * @method renderHtml
       
    28 		 * @return {String} HTML representing the control.
       
    29 		 */
       
    30 		renderHtml: function() {
       
    31 			var self = this;
       
    32 
       
    33 			self.addClass('spacer');
       
    34 			self.canFocus = false;
       
    35 
       
    36 			return '<div id="' + self._id + '" class="' + self.classes() + '"></div>';
       
    37 		}
       
    38 	});
       
    39 });