Description

Component to make an image grid.

Component

Draws and composes a grid of cubes.

The component can have the following attributes.

AttributeTypeRequiredDescription
sliderObjecttrueThe VueFlux component responsible of this cube
rowsnumbertrueThe number of rows
colsnumbertrueThe number of cols
indexObjecttrueAn object containing the indexes of images to apply to the tile cubes
tileCssObjectfalseInitial tile CSS style

Example:

<flux-grid :slider="slider" :num-rows="5" :num-cols="5" :index="2"></flux-grid>

Methods

MethodParametersDescription
setCsscssObject with the style to be applied to grid container
transformfuncRuns a transform function for each tile, receiving as parameter the cube and number