PHP Classes

File: public/js/tinymce/src/themes/mobile/src/main/js/touch/view/TapToEditMask.js

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

Contents

Class file image Download
define( 'tinymce.themes.mobile.touch.view.TapToEditMask', [ 'ephox.alloy.api.behaviour.Behaviour', 'ephox.alloy.api.behaviour.Toggling', 'ephox.alloy.api.component.Memento', 'ephox.alloy.api.ui.Button', 'ephox.alloy.api.ui.Container', 'ephox.katamari.api.Throttler', 'global!setTimeout', 'tinymce.themes.mobile.style.Styles', 'tinymce.themes.mobile.util.UiDomFactory' ], function (Behaviour, Toggling, Memento, Button, Container, Throttler, setTimeout, Styles, UiDomFactory) { var sketch = function (onView, translate) { var memIcon = Memento.record( Container.sketch({ dom: UiDomFactory.dom('<div aria-hidden="true" class="${prefix}-mask-tap-icon"></div>'), containerBehaviours: Behaviour.derive([ Toggling.config({ toggleClass: Styles.resolve('mask-tap-icon-selected'), toggleOnExecute: false }) ]) }) ); var onViewThrottle = Throttler.first(onView, 200); return Container.sketch({ dom: UiDomFactory.dom('<div class="${prefix}-disabled-mask"></div>'), components: [ Container.sketch({ dom: UiDomFactory.dom('<div class="${prefix}-content-container"></div>'), components: [ Button.sketch({ dom: UiDomFactory.dom('<div class="${prefix}-content-tap-section"></div>'), components: [ memIcon.asSpec() ], action: function (button) { onViewThrottle.throttle(); }, buttonBehaviours: Behaviour.derive([ Toggling.config({ toggleClass: Styles.resolve('mask-tap-icon-selected') }) ]) }) ] }) ] }); }; return { sketch: sketch }; } );