riophae / vue-treeselect

A multi-select component with nested options support for Vue.js
https://vue-treeselect.js.org/
MIT License
2.91k stars 509 forks source link

How to add our own class for dropdown text? #460

Open jaymit-ecodedash opened 3 years ago

jaymit-ecodedash commented 3 years ago

Hi @riophae ,

Thanks for the features provided already. but How can I specify the class in labelClassName/countClassName?

<treeselect
    :options="options"
    :multiple="true"
    v-model="value"
    value-format="object">
  <label slot="option-label" slot-scope="{ node, shouldShowCount, count, labelClassName, countClassName }" :class="labelClassName">
     {{ node.label }} - Description: {{ node.raw.desc }}
  </label>
</treeselect>