discourse/app/assets
Joffrey JAFFEUX b9282faa02 dev: d-multi-select and chat-channel-multi-select
Implement a new component called `d-multi-select` which allows to select multiple items.

It has the following features:
- accepts a `loadFn` to load data
- yield result to customise results
- yield selection to customise selection

Usage:

```gjs
 <DMultiSelect
  @loadFn={{this.loadData}}
  @onChange={{this.onChange}}
  @selection={{this.selection}}
>
  <:selection as |item|>{{item.name}}</:selection>
  <:result as |result|>{{result.name}}</:result>
</DMultiSelect>

```gjs
<ChatChannelMultiSelect
  @onChange={{fn (mut this.selectedChannels)}}
  @initialIds={{array 2}}
  @selection={{this.selectedChannels}}
>
    <:selection as |item|>{{item.name}}</:selection>
    <:result as |result|>{{result.name}}</:result>
</ChatChannelMultiSelect>
2025-05-17 22:53:43 +02:00
..
images
javascripts dev: d-multi-select and chat-channel-multi-select 2025-05-17 22:53:43 +02:00
stylesheets dev: d-multi-select and chat-channel-multi-select 2025-05-17 22:53:43 +02:00