devextreme-vue
Version:
DevExtreme Vue UI and Visualization Components
87 lines (85 loc) • 2.55 kB
JavaScript
/*!
* devextreme-vue
* Version: 19.2.6
* Build date: Thu Jan 30 2020
*
* Copyright (c) 2012 - 2020 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 });
var VueType = require("vue");
var Vue = VueType.default || VueType;
var nav_bar_1 = require("devextreme/ui/nav_bar");
var component_1 = require("./core/component");
var configuration_component_1 = require("./core/configuration-component");
var DxNavBar = Vue.extend({
extends: component_1.DxComponent,
props: {
accessKey: String,
dataSource: [Array, Object, String],
disabled: Boolean,
elementAttr: Object,
focusStateEnabled: Boolean,
height: [Function, Number, String],
hint: String,
hoverStateEnabled: Boolean,
itemHoldTimeout: Number,
items: Array,
itemTemplate: {},
keyExpr: [Function, String],
noDataText: String,
onContentReady: Function,
onDisposing: Function,
onInitialized: Function,
onItemClick: [Function, String],
onItemContextMenu: Function,
onItemHold: Function,
onItemRendered: Function,
onOptionChanged: Function,
onSelectionChanged: Function,
repaintChangesOnly: Boolean,
rtlEnabled: Boolean,
scrollByContent: Boolean,
selectedIndex: Number,
selectedItem: Object,
selectedItemKeys: Array,
selectedItems: Array,
selectionMode: String,
tabIndex: Number,
visible: Boolean,
width: [Function, Number, String]
},
computed: {
instance: function () {
return this.$_instance;
}
},
beforeCreate: function () {
this.$_WidgetClass = nav_bar_1.default;
this.$_expectedChildren = {
item: { isCollectionItem: true, optionName: "items" }
};
}
});
exports.DxNavBar = DxNavBar;
var DxItem = Vue.extend({
extends: configuration_component_1.DxConfiguration,
props: {
badge: String,
disabled: Boolean,
html: String,
icon: String,
template: {},
text: String,
visible: Boolean
}
});
exports.DxItem = DxItem;
DxItem.$_optionName = "items";
DxItem.$_isCollectionItem = true;
exports.default = DxNavBar;