Releases: vpusher/the-grid
Releases · vpusher/the-grid
Dynamic tiles and serialization
- Tiles/Children of the grid are now grabbed dynamically thanks to MutationObserver. It means that children can be added either trough
<template>
generated elements or appended in the code, events will always be properly attached and detached. - State of the grid (tiles positions and sizes) can now be serialized into JSON with the method
#serialize()
Ability to add constraints on tile size as min/max
Adds the following attributes:
- min-width
- max-width
- min-height
- max-height
Those attributes can either be set on the tile element itself or on the grid element to constraint all tiles.
Introduce auto-grow feature and custom events.
- Auto-grow allow the grid to increase its size as the user push a tile on the grid edges. Auto-grow can be enabled either on columns with
col-autogrow
attribute, or on rows withrow-autogrow
attribute (or both). - Custom events are now fired when a tile is moved or resized, respectively named
move
andresize
. They occurs only when click or tap is released (on drop). - Adds a responsive grid demo in demo/responsive.html
Introduce overlappable feature
- Adds overlappable attribute
- Stops track events bubbling in the root container
- Adds some regression tests
- Fixes tile size in shadydom
Allow to generate grid's children with templates.
v1.0.3 :bookmark: release 1.0.3
Fixes shadow dom wrapping.
v1.0.2 🔖 - release 1.0.2
Enhanced mobile support
v1.0.1 🔖 release v1.0.1
Initial release
v1.0.0 initial release v1.0.0