all files / blockeditor/renderer/common/ dialog-renderer.js

100% Statements 9/9
100% Branches 0/0
100% Functions 4/4
100% Lines 9/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29   1390×   1390×                                    
define(["require", "exports", "@syncfusion/ej2-popups"], function (require, exports, ej2_popups_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var DialogRenderer = (function () {
        function DialogRenderer(editor) {
            this.editor = editor;
        }
        DialogRenderer.prototype.renderDialog = function (args) {
            return new ej2_popups_1.Dialog({
                header: args.headerTemplate,
                target: this.editor.element,
                footerTemplate: args.footerTemplate,
                content: args.contentTemplate,
                showCloseIcon: args.showCloseIcon,
                closeOnEscape: args.closeOnEscape,
                width: args.width,
                height: args.height,
                visible: args.visible,
                locale: this.editor.locale,
                cssClass: this.editor.cssClass,
                enableRtl: this.editor.enableRtl,
                enablePersistence: this.editor.enablePersistence
            }, args.element);
        };
        return DialogRenderer;
    }());
    exports.DialogRenderer = DialogRenderer;
});