Skip to content

Commit

Permalink
Update the options for the v2 of multiselect
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Bijaoui committed Jun 26, 2017
1 parent fc2983b commit c868aab
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions src/fields/optional/fieldVueMultiSelect.vue
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
<template lang="pug">
multiselect(
//- multiselectMixin.js
:id="selectOptions.id",
:options="options",
:multiple="schema.multiSelect",
:value="value",
:multiple="schema.multiple",
:track-by="selectOptions.trackBy || null",
:label="selectOptions.label || null",
:searchable="selectOptions.searchable",
:local-search="selectOptions.localSearch",
:clear-on-select="selectOptions.clearOnSelect",
:hide-selected="selectOptions.hideSelected",
:placeholder="schema.placeholder",
:max-height="selectOptions.maxHeight",
:allow-empty="selectOptions.allowEmpty",
:reset-after="selectOptions.resetAfter",
:close-on-select="selectOptions.closeOnSelect",
:custom-label="customLabel",
:taggable="selectOptions.taggable",
:tag-placeholder="selectOptions.tagPlaceholder",
:max="schema.max || null",
@input="updateSelected",
@tag="addTag",
@select="onSelect",
@remove="onRemove",
@search-change="onSearchChange",
@open="onOpen",
@close="onClose",
:options-limit="selectOptions.optionsLimit",
:group-label="selectOptions.groupLabel",
:block-keys="selectOptions.blockKeys",
:internal-search="selectOptions.internalSearch",
//- Multiselect.vue
:select-label="selectOptions.selectLabel",
:selected-label="selectOptions.selectedLabel",
:deselect-label="selectOptions.deselectLabel",
Expand All @@ -34,9 +31,19 @@
:limit-text="selectOptions.limitText",
:loading="selectOptions.loading",
:disabled="disabled",
:option-partial="selectOptions.optionPartial",
:max-height="selectOptions.maxHeight",
//- pointerMixin.js
:show-pointer="selectOptions.showPointer",
:option-height="selectOptions.optionHeight"
//- Events
@input="updateSelected",
@select="onSelect",
@remove="onRemove",
@search-change="onSearchChange",
@tag="addTag",
@open="onOpen",
@close="onClose",
//- Slots
:option-height="selectOptions.optionHeight",
)
</template>
<script>
Expand Down

0 comments on commit c868aab

Please sign in to comment.