-
-
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: 15
-
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; }
-
-
-
Avoid that widgets loaded from the DOM can be overlapped. It is helpful if the positions were bad stored in the database or if there was any conflict.
-
-
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.start: function(event, ui){}
-
Executes a function when dragging starts.
-
-
draggable.drag: function(event, ui){}
-
Executes a function when the mouse is moved during the dragging.
-
-
draggable.stop: function(event, ui){}
-
Executes a function when dragging stops.
-
-
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.
-
-