本文整理汇总了TypeScript中@ephox/agar.Chain.wrap方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Chain.wrap方法的具体用法?TypeScript Chain.wrap怎么用?TypeScript Chain.wrap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@ephox/agar.Chain
的用法示例。
在下文中一共展示了Chain.wrap方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: getter
return Chain.on(function (editor, next, die) {
const container = editor.iframeElement;
const getter = dimension === 'width' ? Width.get : Height.get;
const actualValue = typeof value === 'string' ? container.style[dimension] : getter(Element.fromDom(container));
Assertions.assertEq('Editors content area has expected ' + dimension, value, actualValue);
next(Chain.wrap(editor));
});
示例2: function
editor.on('SkinLoaded', function () {
next(Chain.wrap(editor));
});
示例3: setTimeout
setTimeout(function () {
next(Chain.wrap(editor));
}, 0);
示例4: next
const cCreateEditor = Chain.on((_, next, die) => next(Chain.wrap(new Editor('editor', {}, EditorManager))));
示例5: function
}).fold(die, function (win) {
next(Chain.wrap(win));
});
示例6: getDialogByElement
getDialogByElement(element).fold(die, function (win) {
Assertions.assertEq('asserting dialog contents', data, win.toJSON());
next(Chain.wrap(element));
});
示例7: function
const unbindMouseMove = DomEvent.bind(element, 'mousemove', function (e) {
Clicks.mouseup(element);
unbindMouseMove();
next(Chain.wrap(element));
}).unbind;
示例8: next
return Chain.on(function (editor, next, die) {
Assertions.assertHtml(label || 'Asserting editors content', expected, editor.getContent());
next(Chain.wrap(editor));
});