PHP Classes

File: public/js/tinymce/src/themes/mobile/src/demo/js/demo/StylesMenuDemo.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/mobile/src/demo/js/demo/StylesMenuDemo.js   Download  
File: public/js/tinymce/src/themes/mobile/src/demo/js/demo/StylesMenuDemo.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,920 bytes
 

Contents

Class file image Download
define( 'tinymce.themes.mobile.demo.StylesMenuDemo', [ 'ephox.alloy.api.component.GuiFactory', 'ephox.alloy.api.system.Attachment', 'ephox.alloy.api.system.Gui', 'ephox.katamari.api.Fun', 'ephox.sugar.api.search.SelectorFind', 'tinymce.themes.mobile.ui.StylesMenu', 'tinymce.themes.mobile.util.UiDomFactory' ], function (GuiFactory, Attachment, Gui, Fun, SelectorFind, StylesMenu, UiDomFactory) { return function () { var ephoxUi = SelectorFind.first('#ephox-ui').getOrDie(); var menu = StylesMenu.sketch({ formats: { menus: { 'Beta': [ { title: 'Beta-1', isSelected: Fun.constant(false), getPreview: Fun.constant('') }, { title: 'Beta-2', isSelected: Fun.constant(false), getPreview: Fun.constant('') }, { title: 'Beta-3', isSelected: Fun.constant(false), getPreview: Fun.constant('') } ] }, expansions: { 'Beta': 'Beta' }, items: [ { title: 'Alpha', isSelected: Fun.constant(false), getPreview: Fun.constant('') }, { title: 'Beta', isSelected: Fun.constant(false), getPreview: Fun.constant('') }, { title: 'Gamma', isSelected: Fun.constant(true), getPreview: Fun.constant('') } ] }, handle: function (format) { console.log('firing', format); } }); var gui = Gui.create(); Attachment.attachSystem(ephoxUi, gui); var container = GuiFactory.build({ dom: UiDomFactory.dom('<div class="${prefix}-outer-container ${prefix}-fullscreen-maximized"></div>'), components: [ { dom: UiDomFactory.dom('<div class="${prefix}-dropup" style="height: 500px;"></div>'), components: [ menu ] } ] }); gui.add(container); } } );