0.6.0 • Published 4 years ago

@reciprocity/multiselect-custom-el-poc v0.6.0

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

Multiselect

A select component with support multi value selection, auto-complete, etc.

Based on Vue Multiselect. Check out the documentation for more options.

Installation

npm install @reciprocity/multiselect

or

yarn add @reciprocity/multiselect

Usage

This component is meant to be used as an ES module, so you can import it using the ES6 import syntax.

After importing you can just register it with Vue. Eg:

app.vue

<template>
	<multiselect v-model='value' :options='options'>Click me!</multiselect>
</template>
<script>
	import ZenButton from '@reciprocity/button';

	export default Vue.extend({
		name: 'My App',
		data() {
			return {
				value: null,
				options: ['Argentina', 'Slovenia', 'United States']
			}
		},
		components: {
			Multiselect
		}
	};
</script>