Freestyle entry for the new multi-select-dropdown component

This commit is contained in:
Michael Lange 2019-01-09 17:53:39 -08:00 committed by Preetha Appan
parent 72a5f3defc
commit 22ce6cfe36
No known key found for this signature in database
GPG key ID: 9F7C19990A50EAFC
3 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,14 @@
import Component from '@ember/component';
import { computed } from '@ember/object';
export default Component.extend({
options: computed(() => [
{ key: 'option-1', label: 'Option One' },
{ key: 'option-2', label: 'Option Two' },
{ key: 'option-3', label: 'Option Three' },
{ key: 'option-4', label: 'Option Four' },
{ key: 'option-5', label: 'Option Five' },
]),
selection: computed(() => ['option-2', 'option-4', 'option-5']),
});

View file

@ -0,0 +1,9 @@
{{#freestyle-usage "multi-select-dropdown" title="Multi-select dropdown"}}
{{multi-select-dropdown
label="Example Dropdown"
options=options
selection=selection}}
{{/freestyle-usage}}
{{#freestyle-annotation}}
A wrapper around basic-dropdown for creating a list of checkboxes and tracking the state thereof.
{{/freestyle-annotation}}

View file

@ -67,6 +67,10 @@
{{freestyle/sg-metrics}}
{{/section.subsection}}
{{#section.subsection name="Multi-select dropdown"}}
{{freestyle/sg-multi-select-dropdown}}
{{/section.subsection}}
{{#section.subsection name="Page tabs"}}
{{freestyle/sg-page-tabs}}
{{/section.subsection}}