thisbeyond / solid-select

The Select component for Solid.
https://solid-select.com
MIT License
172 stars 18 forks source link

Add extendOptions helper #57

Closed martinpengellyphillips closed 2 months ago

martinpengellyphillips commented 2 months ago

createOptions is deliberately opinionated to avoid creating a complex interface that tries to do too much. It's also relatively simple to copy the code and make adjustments locally if needed.

But sometimes it would be nice to be able to add in a few extra things without that. For example, adding a special option that doesn't conform to the rest of the options type and so needs special handling (think a NOT-SET style option).

Consider adding in a helper function to make it easier to extend option config returned by createOptions.

martinpengellyphillips commented 2 months ago

Release 0.15.0 has now been published which should address this.