1
0
Fork 0
sortable-recipes/app/components/recipe-list.hbs
Ava Gaiety Wroten 0c5a350425 Recipe items
2019-12-21 16:13:14 -06:00

20 lines
501 B
Handlebars

<SortableGroup
@model={{this.items}}
@onChange={{action this.reorderItems}}
as |group|>
{{#each group.model as |meal|}}
<group.item
@model={{meal}}
as |item|>
<item.handle>
<RecipePreview @meal={{meal}} />
</item.handle>
</group.item>
{{/each}}
</SortableGroup>
<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>