|
7 | 7 |
|
8 | 8 | <BasicDropdownWormhole />
|
9 | 9 |
|
| 10 | +TODO: Move this section down to a more appropriate spot |
| 11 | + |
| 12 | +<Shw::Text::H2>searchFieldPosition</Shw::Text::H2> |
| 13 | + |
| 14 | +<Shw::Grid @columns={{2}} {{style padding-bottom="15em"}} as |SG|> |
| 15 | + <SG.Item @label="Multiple w/ search in “trigger” position"> |
| 16 | + <Hds::Form::SuperSelect::Multiple::Field |
| 17 | + @onChange={{fn (mut @model.SELECTED_OPTION)}} |
| 18 | + @options={{@model.OPTIONS}} |
| 19 | + @selected={{@model.SELECTED_OPTION}} |
| 20 | + @initiallyOpened={{true}} |
| 21 | + @verticalPosition="below" |
| 22 | + @searchEnabled={{true}} |
| 23 | + @searchFieldPosition="trigger" |
| 24 | + as |F| |
| 25 | + > |
| 26 | + <F.Label>This is the label</F.Label> |
| 27 | + <F.HelperText>This is the helper text</F.HelperText> |
| 28 | + {{F.options}} |
| 29 | + </Hds::Form::SuperSelect::Multiple::Field> |
| 30 | + </SG.Item> |
| 31 | + |
| 32 | + <SG.Item @label="Multiple w/ search in “before-options” position"> |
| 33 | + <Hds::Form::SuperSelect::Multiple::Field |
| 34 | + @onChange={{fn (mut @model.SELECTED_OPTION)}} |
| 35 | + @options={{@model.OPTIONS}} |
| 36 | + @selected={{@model.SELECTED_OPTION}} |
| 37 | + @initiallyOpened={{true}} |
| 38 | + @verticalPosition="below" |
| 39 | + @searchEnabled={{true}} |
| 40 | + @searchFieldPosition="before-options" |
| 41 | + as |F| |
| 42 | + > |
| 43 | + <F.Label>This is the label</F.Label> |
| 44 | + <F.HelperText>This is the helper text</F.HelperText> |
| 45 | + {{F.options}} |
| 46 | + </Hds::Form::SuperSelect::Multiple::Field> |
| 47 | + </SG.Item> |
| 48 | +</Shw::Grid> |
| 49 | + |
| 50 | +<Shw::Grid @columns={{2}} {{style padding-bottom="15em"}} as |SG|> |
| 51 | + <SG.Item @label="Single w/ search in “before-options” position"> |
| 52 | + <Hds::Form::SuperSelect::Single::Field |
| 53 | + @onChange={{fn (mut @model.SELECTED_OPTION)}} |
| 54 | + @options={{@model.OPTIONS}} |
| 55 | + @selected={{@model.SELECTED_OPTION}} |
| 56 | + @initiallyOpened={{true}} |
| 57 | + @verticalPosition="below" |
| 58 | + @searchEnabled={{true}} |
| 59 | + @searchFieldPosition="before-options" |
| 60 | + as |F| |
| 61 | + > |
| 62 | + <F.Label>This is the label</F.Label> |
| 63 | + <F.HelperText>This is the helper text</F.HelperText> |
| 64 | + {{F.options}} |
| 65 | + </Hds::Form::SuperSelect::Single::Field> |
| 66 | + </SG.Item> |
| 67 | + |
| 68 | + <SG.Item @label="Multiple w/ search in “before-options” position"> |
| 69 | + <Hds::Form::SuperSelect::Multiple::Field |
| 70 | + @onChange={{fn (mut @model.SELECTED_OPTION)}} |
| 71 | + @options={{@model.OPTIONS}} |
| 72 | + @selected={{@model.SELECTED_OPTION}} |
| 73 | + @initiallyOpened={{true}} |
| 74 | + @verticalPosition="below" |
| 75 | + @searchEnabled={{true}} |
| 76 | + @searchFieldPosition="before-options" |
| 77 | + as |F| |
| 78 | + > |
| 79 | + <F.Label>This is the label</F.Label> |
| 80 | + <F.HelperText>This is the helper text</F.HelperText> |
| 81 | + {{F.options}} |
| 82 | + </Hds::Form::SuperSelect::Multiple::Field> |
| 83 | + </SG.Item> |
| 84 | +</Shw::Grid> |
| 85 | + |
| 86 | +<Shw::Divider /> |
| 87 | + |
10 | 88 | <Shw::Text::H1>Form::SuperSelect</Shw::Text::H1>
|
11 | 89 |
|
12 | 90 | <section data-test-percy>
|
|
0 commit comments