gridder configuration object.
Define who are the widgets. Can be a CSS Selector string or a jQuery collection of HTMLElement
Horizontal and vertical margins respectively for widgets.
Base widget dimensions in pixels. The first index for the width and the second for the height.
Add more rows in addition to those that have been calculated.
Add more rows in addition to those that have been calculated.
min_cols: 1
The minimum required columns.
min_rows: 10
The minimum required rows.
autogenerate_stylesheet: true
If true, all the CSS required to position all widgets in their respective columns and rows will be generated automatically and injected to the <head>
of the document. You can set this to false, and write your own CSS targeting rows and cols via data-attributes like so: [data-col="1"] { left: 10px; }
serialize_params: function($w, wgd) { return { col: wgd.col, row: wgd.row } }
Return the data you want for each widget in the serialize method. Two arguments are passed: `$w`: the jQuery wrapped HTMLElement, and `wgd`: the grid coords object (`col`, `row`, `size_x`, `size_y`).
draggable: {}
The configuration object of the jQuery UI Draggable Plugin. See http://jqueryui.com/demos/draggable/ for more information.
collision.on_overlap_start: function(collider_data) { }
Executes a function first time a widget overlaps with a "faux" grid cell.
collision.on_overlap: function(collider_data) { }
Executes a function each time a widget overlaps with a "faux" grid cell.
collision.on_overlap_stop: function(collider_data) { }
Executes a function last time a widget overlaps with a "faux" grid cell.