本文整理汇总了TypeScript中tinymce/core/dom/EventUtils.Event类的典型用法代码示例。如果您正苦于以下问题:TypeScript Event类的具体用法?TypeScript Event怎么用?TypeScript Event使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Event类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
const createPanel = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
return Factory.create(Tools.extend({
type: 'panel'
}, settings)).renderTo(viewBlock.get()).reflow();
};
示例2: function
const createColorButton = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
return Factory.create(Tools.extend({
type: 'colorbutton'
}, settings)).renderTo(viewBlock.get());
};
示例3: function
const createFitPanel = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
return Factory.create(Tools.extend({
type: 'panel',
layout: 'fit',
width: 200,
height: 200,
border: 1
}, settings)).renderTo(viewBlock.get()).reflow();
};
示例4: function
const createTabPanel = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
return Factory.create(Tools.extend({
type: 'tabpanel',
items: [
{ title: 'a', type: 'spacer', classes: 'red' },
{ title: 'b', type: 'spacer', classes: 'green' },
{ title: 'c', type: 'spacer', classes: 'blue' }
]
}, settings)).renderTo(viewBlock.get()).reflow();
};
示例5: function
const createMenuButton = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
return Factory.create(Tools.extend({
type: 'menubutton',
menu: [
{ text: '1' },
{ text: '2' },
{ text: '3' }
]
}, settings)).renderTo(viewBlock.get());
};
示例6: function
const renderGridPanel = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
const panel = Factory.create(Tools.extend({
type: 'panel',
layout: 'grid',
defaults: { type: 'spacer' }
}, settings)).renderTo(viewBlock.get()).reflow();
resetScroll(panel.getEl('body'));
return panel;
};
示例7: function
const renderPanel = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
const panel = Factory.create(Tools.extend({
type: 'panel',
layout: 'flex',
width: 200, height: 200,
items: [
{ type: 'spacer', classes: 'red' },
{ type: 'spacer', classes: 'green' },
{ type: 'spacer', classes: 'blue' }
]
}, settings)).renderTo(viewBlock.get()).reflow();
resetScroll(panel.getEl('body'));
return panel;
};
示例8: function
Pipeline.async({}, suite.toSteps({}), function () {
EventUtils.Event.clean(viewBlock.get());
viewBlock.detach();
success();
}, failure);
示例9: function
const teardown = function () {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
};
示例10: function
Pipeline.async({}, suite.toSteps({}), function () {
EventUtils.Event.clean(viewBlock.get());
DOMUtils.DOM.remove(DOMUtils.DOM.get('mce-modal-block'));
viewBlock.detach();
success();
}, failure);