Please Disable Your Browser Adblock Extension for our site and Refresh This Page!

our ads are user friendly, we do not serve popup ads. We serve responsible ads!

Refresh Page
Skip to main content
On . By CodimTh
Category:

Custom icons for openIndicator and Deselect in vue-select

To render Custom icons for openIndicator and Deselect in vue-select, you could place your icons in a single file component, and then import it.

<!-- OpenIndicator.vue -->
<template>
  <svg>
    <polygon points="18.43 7.72 19.5 8.78 12 16.28 4.5 8.78 5.57 7.72 12 14.16 18.43 7.72"/>
  </svg>
</template>
<!-- Deselect.vue -->
<template>
   <span>❌</span>
</template>
import OpenIndicator from './OpenIndicator.vue'
import Deselect from './Deselect.vue'
import vSelect from 'vue-select';

vSelect.props.components.default = () => ({ OpenIndicator, Deselect });

Riadh Rahmi

Senior Web Developer (Drupal & Laravel)

I am a senior web developer, I have experience in planning and developing large scale dynamic web applications especially in Drupal and Laravel.

Web Posts

Search

Page Facebook