Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted() {
this.foundation = new MDCGridListFoundation({
getOffsetWidth: () => {
return this.$el.offsetWidth;
},
getNumberOfTiles: () => {
return this.$el.querySelectorAll(
MDCGridListFoundation.strings.TILE_SELECTOR,
).length;
},
getOffsetWidthForTileAtIndex: index => {
return this.$el.querySelectorAll(
MDCGridListFoundation.strings.TILE_SELECTOR,
)[index].offsetWidth;
},
setStyleForTilesElement: (property, value) => {
this.$el.querySelector(
MDCGridListFoundation.strings.TILES_SELECTOR,