glhd / aire

Modern form builder for Laravel
https://airephp.com
MIT License
542 stars 36 forks source link

<optgroup> Support for <select> Component #113

Closed thyseus closed 2 years ago

thyseus commented 2 years ago

It would be neat if the Select Component could handle <optgroup>'s like:

Aire::select([
  'group1' => ['group1option1', 'group1option2'],
  'group2' => ['group2option1', 'group2option2'],
])

generating

<select>
 <optgroup label="group1"> ... </optgroup>
 <optgroup label="group2"> ... </optgroup>
</select>
bogdankharchenko commented 2 years ago

@thyseus https://github.com/glhd/aire/pull/97 - this is already possible.

thyseus commented 2 years ago

@bogdankharchenko thanks for that info! Did not find it in the documentation. Is this feature documented ?

bogdankharchenko commented 2 years ago

I don't believe it is documented - we will add some docs.