File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
docs/app/components/snippets Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,17 @@ import { on } from '@ember/modifier';
33import Component from ' @glimmer/component' ;
44import BasicDropdown from ' ember-basic-dropdown/components/basic-dropdown' ;
55import { eq , not } from ' ember-truth-helpers' ;
6+ import { tracked } from ' @glimmer/tracking' ;
67import type {
78 HorizontalPosition ,
89 VerticalPosition ,
910} from ' ember-basic-dropdown/types' ;
1011
1112export default class extends Component {
12- horizontalPosition: HorizontalPosition = ' auto' ;
13- verticalPosition: VerticalPosition = ' auto' ;
14- buttonPosition = ' left' ;
15- renderInPlace = false ;
13+ @ tracked horizontalPosition: HorizontalPosition = ' auto' ;
14+ @ tracked verticalPosition: VerticalPosition = ' auto' ;
15+ @ tracked buttonPosition = ' left' ;
16+ @ tracked renderInPlace = false ;
1617
1718 <template >
1819 horizontalPosition:
@@ -57,6 +58,13 @@ export default class extends Component {
5758 {{on " change" ( fn ( mut this . horizontalPosition) " auto" ) }}
5859 />
5960 <label for =" h-auto" >auto</label >
61+ <input
62+ type =" radio"
63+ id =" h-auto-left"
64+ checked ={{eq this . horizontalPosition " auto-left" }}
65+ {{on " change" ( fn ( mut this . horizontalPosition) " auto-left" ) }}
66+ />
67+ <label for =" h-auto-left" >auto-left</label >
6068 <input
6169 type =" radio"
6270 id =" h-auto-right"
You can’t perform that action at this time.
0 commit comments