Vue-multiselect: [feature request] Add more slots to make each part of the component fully customizable

Created on 8 Jan 2017  路  4Comments  路  Source: shentao/vue-multiselect

It would be great if every part of the component was fully customizable. I'd love to be able to replace multiselect__select, multiselect__spinner, and multiselect__select elements with a custom HTML.

2.0 enhancement

Most helpful comment

Already implemented. Available slots:

  • carret
  • tag
  • loading
  • beforeList
  • maxElements
  • option
  • noResult
  • afterList

All 4 comments

Might come in a later release. If you want to customize every part of the multiselect I guess you would be better just extending the component with your own custom template and styling

Already implemented. Available slots:

  • carret
  • tag
  • loading
  • beforeList
  • maxElements
  • option
  • noResult
  • afterList

Thanks a lot!

@shentao not have example for implement noResult slot? i cant implement it
*UPD

<template slot="noResult" scope="props">
                                <span class="multiselect__option">{{$t('no_elements_found')}}</span>
                            </template>

Got it!) Nice!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PrimozRome picture PrimozRome  路  3Comments

stefanheimann picture stefanheimann  路  4Comments

yaakovp picture yaakovp  路  3Comments

xereda picture xereda  路  4Comments

focussing picture focussing  路  3Comments