vue-search-select
vue-search-select copied to clipboard
Add slot for option in model-select
With this feature, the options into a model-select can have custom template specified from the user using the slot, in order to add color to a specific part of the text or use all html needed in general. If no slot is specified from the user, the behavior is the existing.
Example:
<model-select :options="options" placeholder="select item" v-model="item">
<template slot="option" slot-scope="option">
{{ option.value.text }} <span style="color:blue">HAVE VALUE: {{ option.value.value }} </span>
</template>
</model-select>
I'd love if somebody could review this PR.
I'd be happy to help out as well.