discourse/plugins/styleguide
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
..
app/controllers/styleguide DEV: Move core plugin TL -> group settings (#25355) 2024-01-23 11:35:14 +10:00
assets dev: d-multi-select and chat-channel-multi-select 2025-05-17 22:53:43 +02:00
config Update translations (#32595) 2025-05-06 11:29:38 -04:00
db/migrate DEV: Promote historic post_deploy migrations for core plugins. (#30987) 2025-01-24 11:47:03 -03:00
lib/styleguide
public/images
spec DEV: DMultiSelect (#32240) 2025-04-15 14:56:57 +02:00
plugin.rb DEV: Update rubocop-discourse to latest version 2024-03-04 15:08:35 +01:00
README.md
screenshot.png

styleguide

Adds a URL of /styleguide to discourse that renders widgets in various configurations to aid in styling.

Screenshot