Lets the user specify number of items per row, fixes #7

Ussage: Under `displayData` for a given section, specify `layout: grid`, and then to set the number of horizontal items, use `itemCountX: 3`. You can also set `itemCountY` for number of items vertically, but this can be infered automatically if left blank.
This commit is contained in:
Alicia Sykes
2021-05-31 13:25:29 +01:00
parent 9020caa4e3
commit 10ec99d742
4 changed files with 52 additions and 7 deletions

View File

@@ -25,8 +25,9 @@
:displayData="getDisplayData(section)"
:groupId="`section-${index}`"
:items="filterTiles(section.items)"
:itemSize="itemSizeBound"
@itemClicked="finishedSearching()"
:itemSize="itemSizeBound"
@change-modal-visibility="updateModalVisibility"
:class="(filterTiles(section.items).length === 0 && searchValue) ? 'no-results' : ''"
/>
</div>