Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

[new feature]: Item icon #44

Open
asilichenko opened this issue Jul 28, 2021 · 0 comments
Open

[new feature]: Item icon #44

asilichenko opened this issue Jul 28, 2021 · 0 comments

Comments

@asilichenko
Copy link

Please implement such feature as item icons:


options: [
   {
      label: "Barbina",
      value: "ba",
      icon: "/img/ba.jpg"
},
.....

should be rendered as:


<div class="select-pure__option" data-value="ba"><img class="select-pure__option-icon" src="/img/ba.jpg"/>Barbina</div>

and for selected items:


<span class="select-pure__selected-label"><img class="select-pure__selected-icon" src="/img/ba.jpg">Bigoli<i class="close-btn" data-value="bg"></i></span>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant