vue-select icon indicating copy to clipboard operation
vue-select copied to clipboard

How about optgroup?

Open SoldierCorp opened this issue 6 years ago • 42 comments

SoldierCorp avatar Oct 14 '17 13:10 SoldierCorp

Optgroup Support

sagalbot avatar Nov 14 '17 23:11 sagalbot

@sagalbot - We would really like to use optgroup in vue-select. Would you be willing to accept a donation to add support for optgroup to this library? We could maybe spare say $250?

kramer65 avatar Oct 25 '18 12:10 kramer65

Any updates on this?

joaquinwojcik avatar May 31 '19 13:05 joaquinwojcik

+1 for optgroups!

Sjoerd82 avatar Oct 16 '19 17:10 Sjoerd82

+1 for optgroups!

Kyii avatar Oct 23 '19 13:10 Kyii

+1 for optgroups

arggasasao avatar Apr 13 '20 08:04 arggasasao

+1 for optgroups

hmshafeeq avatar Apr 13 '20 11:04 hmshafeeq

+1 for optgroups

niqitosiq avatar Apr 17 '20 06:04 niqitosiq

Hi! Here my soluction using Vue slots.

<select @change="onChange($event, index)">
  <option selected>seleccionar</option>
  <slot v-for="(item, i) in topItems">
    <optgroup :key="i" v-if="item.sections" :label="item.name">
      <option v-for="(subItem, i) in item.sections.section" :key="i" :value="subItem.url">{{ sub.name }}</option>
    </optgroup>
    <option :key="i" v-if="!item.sections" :value="item.url"> {{ item.name }} </option>
  </slot>
</select>

arggasasao avatar Apr 25 '20 10:04 arggasasao

+1 for optgroups

ezekielchow avatar May 25 '20 18:05 ezekielchow

+1

SimonFricker avatar Jun 15 '20 14:06 SimonFricker

+1

Fozar avatar Jun 20 '20 09:06 Fozar

+1

komenixx avatar Jun 25 '20 12:06 komenixx

+1

subtronic avatar Jul 23 '20 10:07 subtronic

+1 Would be awesome

smholsen avatar Jul 28 '20 12:07 smholsen

+1

subtronic avatar Jul 28 '20 15:07 subtronic

+1 please...

jiagbrody avatar Aug 05 '20 14:08 jiagbrody

+1

sciracioglu avatar Jan 31 '21 21:01 sciracioglu

+1 for optgroup, please

Lug-As avatar Feb 16 '21 21:02 Lug-As

please, we all need optgroups

mewlabs avatar Mar 03 '21 10:03 mewlabs

very much needed optgroup

kovalevadim avatar Mar 03 '21 10:03 kovalevadim

please optgroup 😢

DanielTQI avatar Aug 25 '21 20:08 DanielTQI

+1

dev-santosh avatar Oct 11 '21 10:10 dev-santosh

+1

ShetlandJ avatar Nov 02 '21 16:11 ShetlandJ

+1

al-hz avatar Nov 24 '21 10:11 al-hz

+1

YajanaRao avatar Dec 15 '21 05:12 YajanaRao

+1

cami-espinozaq avatar Jan 04 '22 11:01 cami-espinozaq

+1

kudinov-1 avatar Jan 08 '22 15:01 kudinov-1

+1

willimaese avatar Mar 25 '22 09:03 willimaese

+1

hfelipeoliveira avatar Apr 17 '22 20:04 hfelipeoliveira