Skip to content

Adding ability to use load to init opt groups#1279

Closed
brainded wants to merge 1 commit intoselectize:masterfrom
brainded:master
Closed

Adding ability to use load to init opt groups#1279
brainded wants to merge 1 commit intoselectize:masterfrom
brainded:master

Conversation

@brainded
Copy link

I noticed the ability to init the list from a async source was missing the ability to also init groups, so I added what I thought was needed to get this working. It utilizes the optgroupValueField to figure out the Id to use with the addOptionGroup method and iterates through the list of groups to add them.

I looked for any examples of tests for the load function but didn't find any. I am going to take a look at adding a test once I figured out how to use this testing pattern with the function but I wanted to get this pull request open so its at least on the board.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 1e9828e on brainded:master into ** on selectize:master**.

@4levels
Copy link

4levels commented Jan 16, 2018

Hi,

any prediction on if this will be merged and if so, when? Seems like a great addition for the project!

Kind regards and thanks again for making selectize so great!

@Joozty
Copy link

Joozty commented Jun 20, 2018

It would be great if this could be merged.

@pierreminiggio
Copy link

I'd need that. Has this not gotten merged yet? Is there another good alternative?

@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2021

Stale pull request message

@github-actions github-actions bot closed this Jan 6, 2021
alizfara112 added a commit to alizfara112/tom-select that referenced this pull request Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants