UNPKG

devextreme-vue

Version:

DevExtreme Vue UI and Visualization Components

41 lines (39 loc) 1.32 kB
/*! * devextreme-vue * Version: 25.1.6 * Build date: Mon Oct 13 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-vue */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.initDxExtensionComponent = void 0; const vue_1 = require("vue"); const component_1 = require("./component"); const vue_helper_1 = require("./vue-helper"); function initDxExtensionComponent() { return (0, vue_1.defineComponent)({ extends: (0, component_1.initBaseComponent)(), mounted() { this.$el.setAttribute('isExtension', 'true'); const nodeOptions = (0, vue_helper_1.getNodeOptions)(this); nodeOptions.$_isExtension = true; nodeOptions.$_attachTo = this.attachTo.bind(this); if (nodeOptions && nodeOptions.$_hasOwner) { return; } this.attachTo(this.$el); }, methods: { attachTo(element) { this.$_createWidget(element); }, }, }); } exports.initDxExtensionComponent = initDxExtensionComponent;