Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Commit

Permalink
Add new options for group seaprators #14
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuch committed Apr 1, 2014
1 parent ac38ea2 commit 51318b6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/jquery.gridList.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
defaults: {
rows: 5,
widthHeightRatio: 1,
dragAndDrop: true
dragAndDrop: true,
columnsPerGroup: false,
// Since the entire grid is built fluid and responsive, the separator
// width will also be relative to the item width (which in turn is
// relative to the parent container's height)
groupSeparatorWidth: 0.5
},

destroy: function() {
Expand Down Expand Up @@ -92,7 +97,7 @@
_initGridList: function() {
// Create instance of GridList (decoupled lib for handling the grid
// positioning and sorting post-drag and dropping)
this.gridList = new GridList(this.items, {rows: this.options.rows});
this.gridList = new GridList(this.items, this.options);
},

_bindEvents: function() {
Expand Down

0 comments on commit 51318b6

Please sign in to comment.