UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

37 lines (36 loc) 1.2 kB
/** * DevExtreme (framework/html/command_container.js) * Version: 18.2.18 * Build date: Tue Oct 18 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; require("../../integration/jquery"); var $ = require("jquery"), MarkupComponent = require("./markup_component").MarkupComponent, isPlainObject = require("../../core/utils/type").isPlainObject, registerComponent = require("../../core/component_registrator"); require("../../integration/knockout"); var CommandContainer = MarkupComponent.inherit({ ctor: function(element, options) { if (isPlainObject(element)) { options = element; element = $("<div>") } this.callBase(element, options) }, _setDefaultOptions: function() { this.callBase(); this.option({ id: null }) }, _render: function() { this.callBase(); this.element().addClass("dx-command-container") } }); registerComponent("dxCommandContainer", CommandContainer); module.exports = CommandContainer;