Hi folks!
With a searchable elm-select variant, the available options filter based on what a user types into the input. This is a very simple fuzzy match.
There are times however where we don’t want an option to filter out of the menu. Perhaps this option does something special or simply must always be present in the menu not matter what the filtered list looks like.
Menu items can now set a filterableMenuItem property.
customMenuItem
{ item = Sticky, label = "StickyOption", view = text "This is a sticky option!! " }
|> filterableMenuItem False
This provides a lot of flexibility with how you can use your options to do other things. Like the example below we are using an option to create new options based on the input text.
Hope this provides some flexibility.