Skip to content

Loading optgroup results from the server. #151

Closed
@jayalfredprufrock

Description

@jayalfredprufrock

It seems awkward having to manually specify the potential optgroups for selectize to properly group items. I understand that the current implementation offers a little more flexibility in terms of optgroup labels/ids, but when loading search results from a server it would be super handy if selectize would automatically pull out all the unique optgroups from the results, perhaps only when the optgroups array was not set manually during initialization.

I've tried to set the optgroups array within the load event (after pulling out the unique optgroups), but that doesn't seem to be working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions