1
0
Fork 0
sortable-recipes/ember-ui/app/components/sortable-group-accessible.hbs
2020-03-09 18:53:56 -05:00

19 lines
557 B
Handlebars

<div
data-id={{this.uniqId}}
{{on 'focus' this.handleFocus}}
{{on 'blur' this.handleBlur}}
{{key-up this.handleArrowUp key='ArrowUp'}}
{{key-up this.handleArrowDown key='ArrowDown'}}
{{key-down this.preventDefault key='ArrowUp'}}
{{key-down this.preventDefault key='ArrowDown'}}
...attributes>
{{yield
this.groupHasFocus
this.selectedIndex
(hash
orderItemDown=(action 'orderItemDown')
orderItemUp=(action 'orderItemUp')
handleFocus=(action 'handleFocus')
handleBlur=(action 'handleBlur')
)}}
</div>