UNPKG

devextreme-vue

Version:

DevExtreme Vue UI and Visualization Components

122 lines (120 loc) 3.63 kB
/*! * devextreme-vue * Version: 25.1.5 * Build date: Wed Sep 03 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 */ import { defineComponent } from "vue"; import { prepareComponentConfig } from "./core/index"; import Toolbar from "devextreme/ui/toolbar"; import { prepareConfigurationComponentConfig } from "./core/index"; const componentConfig = { props: { dataSource: [Array, Object, String], disabled: Boolean, elementAttr: Object, hint: String, hoverStateEnabled: Boolean, itemHoldTimeout: Number, items: Array, itemTemplate: {}, menuItemTemplate: {}, multiline: Boolean, noDataText: String, onContentReady: Function, onDisposing: Function, onInitialized: Function, onItemClick: Function, onItemContextMenu: Function, onItemHold: Function, onItemRendered: Function, onOptionChanged: Function, rtlEnabled: Boolean, visible: Boolean, width: [Number, String] }, emits: { "update:isActive": null, "update:hoveredElement": null, "update:dataSource": null, "update:disabled": null, "update:elementAttr": null, "update:hint": null, "update:hoverStateEnabled": null, "update:itemHoldTimeout": null, "update:items": null, "update:itemTemplate": null, "update:menuItemTemplate": null, "update:multiline": null, "update:noDataText": null, "update:onContentReady": null, "update:onDisposing": null, "update:onInitialized": null, "update:onItemClick": null, "update:onItemContextMenu": null, "update:onItemHold": null, "update:onItemRendered": null, "update:onOptionChanged": null, "update:rtlEnabled": null, "update:visible": null, "update:width": null, }, computed: { instance() { return this.$_instance; } }, beforeCreate() { this.$_WidgetClass = Toolbar; this.$_hasAsyncTemplate = true; this.$_expectedChildren = { item: { isCollectionItem: true, optionName: "items" } }; } }; prepareComponentConfig(componentConfig); const DxToolbar = defineComponent(componentConfig); const DxItemConfig = { emits: { "update:isActive": null, "update:hoveredElement": null, "update:cssClass": null, "update:disabled": null, "update:html": null, "update:locateInMenu": null, "update:location": null, "update:menuItemTemplate": null, "update:options": null, "update:showText": null, "update:template": null, "update:text": null, "update:visible": null, "update:widget": null, }, props: { cssClass: String, disabled: Boolean, html: String, locateInMenu: String, location: String, menuItemTemplate: {}, options: {}, showText: String, template: {}, text: String, visible: Boolean, widget: String } }; prepareConfigurationComponentConfig(DxItemConfig); const DxItem = defineComponent(DxItemConfig); DxItem.$_optionName = "items"; DxItem.$_isCollectionItem = true; export default DxToolbar; export { DxToolbar, DxItem };