Skip to content

Breaking changes in v.0.6

Damian Wajdlich edited this page Sep 25, 2017 · 1 revision

Configuration of GridsterItem should be now set by ´options´ attribute on GridsterItem component itself - not on Gridster options like before. Map between deprecated Gridster options and new adequate GridsterItem options:

Gridster options (deprecated) GridsterItem option (new) Default value Info
minWidth minWidth 1 Min width (in lanes) of item that can be set by resize feature. This option in Gridster options is still valid but has another meaning. Look for responsive options.
minHeight minHeight 1 Min height (in lanes) of item that can be set by resize feature.
maxWidth maxWidth null Max width (in lanes) of item that can be set by resize feature.
maxHeight maxHeight null Max height (in lanes) of item that can be set by resize feature.
defaultItemWidth defaultWidth 1 Default width of an item when new item (without size) will be pushed to the gridster.
defaultItemHeight defaultHeight 1 Default height of an item when new item (without size) will be pushed to the gridster.

Removed events on GridsterComponent:

  • gridsterPositionChange
  • resize

In place of them use new change event on GridsterItemComponent. More info here.

Clone this wiki locally