1
0
Fork 0
sortable-recipes/app/components/recipe-list.hbs
2019-12-21 15:51:34 -06:00

21 lines
543 B
Handlebars

<button
{{on "click" this.addRecipe}}
class="bg-blue-500 hover:bg-blue-400 text-white font-bold py-2 px-4 border-b-4 border-blue-700 hover:border-blue-500 rounded">
Button
</button>
<SortableGroup
@model={{this.items}}
@onChange={{action this.reorderItems}}
as |group|>
{{#each group.model as |modelItem|}}
<group.item
@model={{modelItem}}
as |item|>
<item.handle>
<span class="handle">&varr;</span>
{{modelItem.strMeal}}
</item.handle>
</group.item>
{{/each}}
</SortableGroup>