1.4.1 • Published 3 years ago

@mintjamsinc/vue-selection v1.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

MIT

Copyright (c) 2021 MintJams Inc.

1.4.1

3 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago