[Vuejs]-How do I chance 1 option selected text in vueforms multi select

0👍

You can change it by using slot.

<multiselect
  v-model="value"
  :options="options"
  :multiple="true"
  :close-on-select="false"
  :clear-on-select="false"
  :preserve-search="true"
  placeholder="Pick some"
  label="name"
  track-by="name"
  :preselect-first="true"
  >
  <template slot="selection" slot-scope="{ values, search, isOpen }">
    <span
      class="multiselect__single"
      v-if="values.length &amp;&amp; !isOpen"
      >
    Custom placeholder
    </span>
  </template>
</multiselect>

Leave a comment