PHP Classes

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

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

Contents

Class file image Download
define( 'tinymce.themes.mobile.ui.Dropup', [ 'ephox.alloy.api.behaviour.Behaviour', 'ephox.alloy.api.behaviour.Replacing', 'ephox.alloy.api.behaviour.Sliding', 'ephox.alloy.api.component.GuiFactory', 'ephox.alloy.api.ui.Container', 'ephox.katamari.api.Fun', 'global!window', 'tinymce.themes.mobile.channels.Receivers', 'tinymce.themes.mobile.style.Styles' ], function (Behaviour, Replacing, Sliding, GuiFactory, Container, Fun, window, Receivers, Styles) { var build = function (refresh, scrollIntoView) { var dropup = GuiFactory.build( Container.sketch({ dom: { tag: 'div', classes: Styles.resolve('dropup') }, components: [ ], containerBehaviours: Behaviour.derive([ Replacing.config({ }), Sliding.config({ closedClass: Styles.resolve('dropup-closed'), openClass: Styles.resolve('dropup-open'), shrinkingClass: Styles.resolve('dropup-shrinking'), growingClass: Styles.resolve('dropup-growing'), dimension: { property: 'height' }, onShrunk: function (component) { refresh(); scrollIntoView(); Replacing.set(component, [ ]); }, onGrown: function (component) { refresh(); scrollIntoView(); } }), Receivers.orientation(function (component, data) { disappear(Fun.noop); }) ]) }) ); var appear = function (menu, update, component) { if (Sliding.hasShrunk(dropup) === true && Sliding.isTransitioning(dropup) === false) { window.requestAnimationFrame(function () { update(component); Replacing.set(dropup, [ menu() ]); Sliding.grow(dropup); }); } }; var disappear = function (onReadyToShrink) { window.requestAnimationFrame(function () { onReadyToShrink(); Sliding.shrink(dropup); }); }; return { appear: appear, disappear: disappear, component: Fun.constant(dropup), element: dropup.element }; }; return { build: build }; } );