Adds itemSize property

This commit is contained in:
Alicia Sykes
2021-04-18 13:57:20 +01:00
parent 78ebcbfa0a
commit 375ab032cd
3 changed files with 9 additions and 3 deletions

View File

@@ -33,7 +33,6 @@ export default {
subtitle: String, // Optional sub-text
description: String, // Optional tooltip hover text
icon: String, // Optional path to icon, within public/img/tile-icons
svg: String, // Optional vector graphic, that is then dynamically filled
color: String, // Optional background color, specified in hex code
url: String, // URL to the resource, optional but recommended
target: { // Where resource will open, either 'newtab', 'sametab' or 'iframe'

View File

@@ -21,7 +21,7 @@
:description="item.description"
:icon="item.icon"
:target="item.target"
:itemSize="itemSize"
:itemSize="newItemSize"
@itemClicked="$emit('itemClicked')"
@triggerModal="triggerModal"
/>
@@ -54,6 +54,11 @@ export default {
Item,
IframeModal,
},
computed: {
newItemSize: function size() {
return this.displayData.itemSize || this.itemSize;
},
},
methods: {
/* Returns a unique lowercase string, based on name, for section ID */
makeId(str) {