Universal select/multiselect/tagging component for Vue.js
#Fixes
f9010b91a6747b95b53eea7ae1265b710e10d8e6 Add TypeScript typings to files in package.json.
f5ad5af Added selection slot around multiselect tags 2a4da0c Add getLabel method to tag slot (#744) 3169143 Added type definition file (#747) 496937b Add slot that shows message about empty options (#699) 60e2884 Retain class 'multiselect__option--group' even groupSelect prop is set to false (#799) 8024d61 Fix #815: Tabbing in firefox when there is a horizontal scroll bar (#817)
6483cfa make index of visibleValues the unique key 16cd900 Update bower.json (#774) 0874091 Fix placeholder markup (#700) b833c68 matches docs with source code. correct slot event name (#722) 65b9895 Fix #690, enter and leave field with tab (#697)
P.S. Please accept my apology for delaying the release for such a long time. 😞
internalValue
is now completely derived from the value
. This means that the Multiselect won’t update if you don’t use v-model
or handle the @input
event properly. It also solves problems with circular structures as well as dynamic i18n of options etc.singleLabel
slot feature (@shentao)search
prop being cleared on scrollbar click (@dmungin)caret
slot (@pczarn)Styles are now contained inside a separate css
file. This should enable usage in SSR apps. It should also make it easier to customize the styles without having redundant CSS rules.
However, you have to add the styles manually. Usually this can be done by adding:
<style src="vue-multiselect/dist/vue-multiselect.min.css"></style>
inside a root component or in the place where vue-multiselect is used or as a static asset along with your component-agnostic CSS code. When used without a bundler, you can add the file as a static asset with this CDN link:
<style src="https://unpkg.com/[email protected]/dist/vue-multiselect.min.css"></style>
noResults
slot won’t be displayed if loading
is set to true
isLabel
related errors in any case:local-search
to :internal-search
.Example grouped options:
options: [
{
label: 'Group A',
values: [1, 2, 3]
},
{
label: 'Group B',
values: [4, 5, 6]
}
}
And here’s how to configure the dropdown.
group-values
should point to the property where the option list is located.
group-label
should point to the group label.
<multiselect :options="options" group-values="values" group-label="label">
Complete docs soon. :)
#150 #144 #147 #128 #109 #102