PHP Classes

File: public/js/tinymce/src/themes/mobile/src/main/js/ui/OuterContainer.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/mobile/src/main/js/ui/OuterContainer.js   Download  
File: public/js/tinymce/src/themes/mobile/src/main/js/ui/OuterContainer.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 1,020 bytes
 

Contents

Class file image Download
define( 'tinymce.themes.mobile.ui.OuterContainer', [ 'ephox.alloy.api.behaviour.Behaviour', 'ephox.alloy.api.behaviour.Swapping', 'ephox.alloy.api.component.GuiFactory', 'ephox.alloy.api.system.Gui', 'ephox.alloy.api.ui.Container', 'ephox.katamari.api.Fun', 'tinymce.themes.mobile.style.Styles' ], function (Behaviour, Swapping, GuiFactory, Gui, Container, Fun, Styles) { var READ_ONLY_MODE_CLASS = Fun.constant(Styles.resolve('readonly-mode')); var EDIT_MODE_CLASS = Fun.constant(Styles.resolve('edit-mode')); return function (spec) { var root = GuiFactory.build( Container.sketch({ dom: { classes: [ Styles.resolve('outer-container') ].concat(spec.classes) }, containerBehaviours: Behaviour.derive([ Swapping.config({ alpha: READ_ONLY_MODE_CLASS(), omega: EDIT_MODE_CLASS() }) ]) }) ); return Gui.takeover(root); }; } );