first commit
This commit is contained in:
39
js/tinymce/classes/ui/Spacer.js
Normal file
39
js/tinymce/classes/ui/Spacer.js
Normal file
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Spacer.js
|
||||
*
|
||||
* Released under LGPL License.
|
||||
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
|
||||
*
|
||||
* License: http://www.tinymce.com/license
|
||||
* Contributing: http://www.tinymce.com/contributing
|
||||
*/
|
||||
|
||||
/**
|
||||
* Creates a spacer. This control is used in flex layouts for example.
|
||||
*
|
||||
* @-x-less Spacer.less
|
||||
* @class tinymce.ui.Spacer
|
||||
* @extends tinymce.ui.Widget
|
||||
*/
|
||||
define("tinymce/ui/Spacer", [
|
||||
"tinymce/ui/Widget"
|
||||
], function(Widget) {
|
||||
"use strict";
|
||||
|
||||
return Widget.extend({
|
||||
/**
|
||||
* Renders the control as a HTML string.
|
||||
*
|
||||
* @method renderHtml
|
||||
* @return {String} HTML representing the control.
|
||||
*/
|
||||
renderHtml: function() {
|
||||
var self = this;
|
||||
|
||||
self.classes.add('spacer');
|
||||
self.canFocus = false;
|
||||
|
||||
return '<div id="' + self._id + '" class="' + self.classes + '"></div>';
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user