UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

48 lines (41 loc) 1.27 kB
"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"); /** * @name dxCommandContainer * @section frameworkMarkupComponents * @publicName dxCommandContainer * @type object * @module framework/html/command_container */ var CommandContainer = MarkupComponent.inherit({ ctor: function ctor(element, options) { if (isPlainObject(element)) { options = element; element = $("<div>"); } this.callBase(element, options); }, _setDefaultOptions: function _setDefaultOptions() { this.callBase(); this.option({ /** * @name dxCommandContaineroptions.id * @publicName id * @type string * @default null */ id: null }); }, _render: function _render() { this.callBase(); this.element().addClass("dx-command-container"); } }); registerComponent("dxCommandContainer", CommandContainer); module.exports = CommandContainer;