@mintjamsinc/vue-selection
v1.4.1
Published
A reusable Selection component for Vue.js 2.x used by webtop applications.
Downloads
7
Readme
vue-selection
A reusable Selection component for Vue.js 2.x used by webtop applications.
Installation
npm install --save-dev @mintjamsinc/vue-selection
Usage
<Selection
ref="tags"
:multiple="true"
maxLabelWidth="10em"
v-hook="{inserted: onTagsLoad}"/>
import Selection from '@mintjamsinc/vue-selection';
export default {
components: {
Selection,
},
methods: {
onTagsLoad() {
// let ui = vm.$refs.tags.ui;
// ui.getIdentifier = function(o) {};
// ui.getAuthorizable = function(o) {};
// ui.getItem = function(o) {};
// ui.getIcon = function(o) {};
// ui.getLabel = function(o) {};
// ui.comparator = function(a, b) {};
// ui.onChanged = function() {};
// ui.objects = ...
// ui.selection = ...
},
},
}
License
Copyright (c) 2021 MintJams Inc.