open-nomad/ui/app/templates/components/flex-masonry.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
424 B
Handlebars
Raw Normal View History

<div
2020-10-11 03:39:07 +00:00
data-test-flex-masonry
class="flex-masonry {{if @withSpacing "with-spacing"}} flex-masonry-columns-{{@columns}}"
{{did-insert this.captureElement}}
{{did-insert this.reflow}}
{{did-update this.reflow @columns}}
2020-10-08 05:18:43 +00:00
{{window-resize this.reflow}}>
{{#each @items as |item|}}
2020-10-11 03:39:07 +00:00
<div data-test-flex-masonry-item class="flex-masonry-item">
{{yield item (action this.reflow)}}
</div>
{{/each}}
</div>