all files / blockeditor/renderer/common/ dropdownlist-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   1390×   85×                          
define(["require", "exports", "@syncfusion/ej2-dropdowns"], function (require, exports, ej2_dropdowns_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var DropDownListRenderer = (function () {
        function DropDownListRenderer(editor) {
            this.editor = editor;
        }
        DropDownListRenderer.prototype.renderDropDownList = function (args) {
            return new ej2_dropdowns_1.DropDownList({
                dataSource: args.dataSource,
                fields: args.fields,
                value: args.value,
                change: args.change,
                locale: this.editor.locale,
                cssClass: this.editor.cssClass,
                enableRtl: this.editor.enableRtl,
                enablePersistence: this.editor.enablePersistence
            }, args.targetElement);
        };
        return DropDownListRenderer;
    }());
    exports.DropDownListRenderer = DropDownListRenderer;
});