mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
UX: Compact option for multi-selects (#22239)
Adds an alternative to the default multi select item, better suited for quickly adding/removing tags.
This commit is contained in:
@ -123,6 +123,28 @@
|
||||
<MultiSelect @content={{@dummy.options}} @onChange={{@dummyAction}} />
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="<MiniTagChooser>">
|
||||
<div class="inline-form">
|
||||
<MiniTagChooser
|
||||
@value={{@dummy.selectedTags}}
|
||||
@options={{hash filterable=true}}
|
||||
/>
|
||||
</div>
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="<MiniTagChooser> with useHeaderFilter=true">
|
||||
<div class="inline-form">
|
||||
<MiniTagChooser
|
||||
@value={{@dummy.selectedTags}}
|
||||
@options={{hash
|
||||
filterable=true
|
||||
filterPlaceholder="topic_edit.tag_filter_placeholder"
|
||||
useHeaderFilter=true
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</StyleguideExample>
|
||||
|
||||
<StyleguideExample @title="admin <GroupChooser>">
|
||||
<GroupChooser
|
||||
@selected={{@dummy.selectedGroups}}
|
||||
|
@ -282,6 +282,8 @@ export function createData(store) {
|
||||
colors: "f49|c89|564897",
|
||||
|
||||
charCounterContent: "",
|
||||
|
||||
selectedTags: ["apple", "orange", "potato"],
|
||||
};
|
||||
|
||||
return _data;
|
||||
|
Reference in New Issue
Block a user