maxmarcon / live_select

Dynamic (multi)selection field for LiveView
https://hex.pm/packages/live_select
Apache License 2.0
185 stars 35 forks source link

Add update_selection/1 to dynamically change the selection #69

Open shamanime opened 5 months ago

shamanime commented 5 months ago

Closes https://github.com/maxmarcon/live_select/issues/68.

This allows updating the selection by passing a function with 1 arity to :update_selection.

It can be used to add/filter values from the existing selection without passing the whole selection as a value.

maxmarcon commented 5 months ago

Thanks @shamanime for your efforts! I will take a look at this soon