UNPKG

devextreme-vue

Version:

DevExtreme UI and Visualization Components for Vue

41 lines (39 loc) 1.35 kB
/*! * devextreme-vue * Version: 25.2.7 * Build date: Tue May 05 2026 * * Copyright (c) 2012 - 2026 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 */ "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;