2012-07-18 18:31:44 +02:00
{
"project" : {},
"files" : {
"src/jquery.collision.js" : {
"name" : "src/jquery.collision.js" ,
"modules" : {},
"classes" : {
2012-07-23 22:51:04 +02:00
"Collision" : 1
2012-07-18 18:31:44 +02:00
},
"fors" : {},
"namespaces" : {}
},
"src/jquery.coords.js" : {
"name" : "src/jquery.coords.js" ,
"modules" : {},
"classes" : {
2012-07-23 22:51:04 +02:00
"Coords" : 1
2012-07-18 18:31:44 +02:00
},
"fors" : {},
"namespaces" : {}
},
2012-07-23 15:15:26 +02:00
"src/jquery.draggable.js" : {
"name" : "src/jquery.draggable.js" ,
"modules" : {},
"classes" : {
"Draggable" : 1
},
"fors" : {},
"namespaces" : {}
},
2012-07-18 18:31:44 +02:00
"src/jquery.gridster.js" : {
"name" : "src/jquery.gridster.js" ,
"modules" : {},
"classes" : {
"Gridster" : 1
},
"fors" : {},
"namespaces" : {}
}
},
"modules" : {},
"classes" : {
2012-07-23 22:51:04 +02:00
"Collision" : {
"name" : "Collision" ,
"shortname" : "Collision" ,
2012-07-18 18:31:44 +02:00
"classitems" : [],
"plugins" : [],
"extensions" : [],
"plugin_for" : [],
2012-07-23 22:51:04 +02:00
"extension_for" : [
"Gridster"
],
2012-07-18 18:31:44 +02:00
"file" : "src/jquery.collision.js" ,
2012-07-23 22:08:09 +02:00
"line" : 19 ,
2012-07-23 22:51:04 +02:00
"description" : "Detects collisions between a DOM element against other DOM elements or\nCoords objects." ,
2012-07-18 18:31:44 +02:00
"uses" : [
"Coords"
],
"params" : [
{
2012-07-23 22:08:09 +02:00
"name" : "el" ,
"description" : "The jQuery wrapped HTMLElement." ,
2012-07-18 18:31:44 +02:00
"type" : "HTMLElement"
},
{
"name" : "colliders" ,
2012-07-23 22:08:09 +02:00
"description" : "Can be a jQuery collection\n of HTMLElements or an Array of Coords instances." ,
"type" : "HTMLElement|Array"
2012-07-18 18:31:44 +02:00
},
{
"name" : "options" ,
2012-07-23 22:08:09 +02:00
"description" : "An Object with all options you want to\n overwrite:" ,
2012-07-18 18:31:44 +02:00
"type" : "Object" ,
"optional" : true ,
"props" : [
{
2012-07-23 22:08:09 +02:00
"name" : "on_overlap_start" ,
"description" : "Executes a function the first\n time each `collider ` is overlapped." ,
2012-07-18 18:31:44 +02:00
"type" : "Function" ,
"optional" : true
},
{
2012-07-23 22:08:09 +02:00
"name" : "on_overlap_stop" ,
"description" : "Executes a function when a\n `collider` is no longer collided." ,
2012-07-18 18:31:44 +02:00
"type" : "Function" ,
"optional" : true
},
{
2012-07-23 22:08:09 +02:00
"name" : "on_overlap" ,
"description" : "Executes a function when the\nmouse is moved during the collision." ,
2012-07-18 18:31:44 +02:00
"type" : "Function" ,
"optional" : true
}
]
}
],
"return" : {
2012-07-23 22:08:09 +02:00
"description" : "Collision instance." ,
2012-07-18 18:31:44 +02:00
"type" : "Object"
},
"is_constructor" : 1
},
2012-07-23 22:51:04 +02:00
"Coords" : {
"name" : "Coords" ,
"shortname" : "Coords" ,
2012-07-18 18:31:44 +02:00
"classitems" : [],
"plugins" : [],
"extensions" : [],
"plugin_for" : [],
2012-07-23 22:51:04 +02:00
"extension_for" : [
"Collision"
],
2012-07-18 18:31:44 +02:00
"file" : "src/jquery.coords.js" ,
"line" : 10 ,
2012-07-23 22:51:04 +02:00
"description" : "Creates objects with coordinates (x1, y1, x2, y2, cx, cy, width, height)\nto simulate DOM elements on the screen.\nCoords is used by Gridster to create a faux grid with any DOM element can\ncollide." ,
2012-07-18 18:31:44 +02:00
"params" : [
{
"name" : "obj" ,
2012-07-23 22:08:09 +02:00
"description" : "The jQuery HTMLElement or a object with: left,\ntop, width and height properties." ,
2012-07-18 18:31:44 +02:00
"type" : "HTMLElement|Object"
}
],
2012-07-23 22:08:09 +02:00
"return" : {
"description" : "Coords instance." ,
"type" : "Object"
},
2012-07-18 18:31:44 +02:00
"is_constructor" : 1
},
2012-07-23 15:15:26 +02:00
"Draggable" : {
"name" : "Draggable" ,
"shortname" : "Draggable" ,
"classitems" : [],
"plugins" : [],
"extensions" : [],
"plugin_for" : [],
2012-07-23 22:08:09 +02:00
"extension_for" : [
"Gridster"
],
2012-07-23 15:15:26 +02:00
"file" : "src/jquery.draggable.js" ,
2012-07-24 15:43:19 +02:00
"line" : 26 ,
2012-07-23 22:51:04 +02:00
"description" : "Basic drag implementation for DOM elements inside a container.\nProvide start/stop/drag callbacks." ,
2012-07-23 22:08:09 +02:00
"params" : [
{
"name" : "el" ,
"description" : "The HTMLelement that contains all the widgets\n to be dragged." ,
"type" : "HTMLElement"
},
{
"name" : "options" ,
"description" : "An Object with all options you want to\n overwrite:" ,
"type" : "Object" ,
"optional" : true ,
"props" : [
{
"name" : "items" ,
"description" : "Define who will\n be the draggable items. Can be a CSS Selector String or a\n collection of HTMLElements." ,
"type" : "HTMLElement|String" ,
"optional" : true
},
{
"name" : "distance" ,
"description" : "Distance in pixels after mousedown\n the mouse must move before dragging should start." ,
"type" : "Number" ,
"optional" : true
},
{
"name" : "limit" ,
"description" : "Constrains dragging to the width of\n the container" ,
"type" : "Boolean" ,
"optional" : true
},
{
"name" : "offset_left" ,
"description" : "Offset added to the item\n that is being dragged." ,
"type" : "Offset_left" ,
"optional" : true
},
{
"name" : "drag" ,
"description" : "Executes a callback when the mouse is\n moved during the dragging." ,
"type" : "Number" ,
"optional" : true
},
{
"name" : "start" ,
"description" : "Executes a callback when the drag\n starts." ,
"type" : "Number" ,
"optional" : true
},
{
"name" : "stop" ,
"description" : "Executes a callback when the drag stops." ,
"type" : "Number" ,
"optional" : true
}
]
}
],
"return" : {
"description" : "Returns `el`." ,
"type" : "Object"
},
2012-07-23 15:15:26 +02:00
"is_constructor" : 1
},
2012-07-18 18:31:44 +02:00
"Gridster" : {
"name" : "Gridster" ,
"shortname" : "Gridster" ,
"classitems" : [],
"plugins" : [],
"extensions" : [],
"plugin_for" : [],
"extension_for" : [],
"file" : "src/jquery.gridster.js" ,
2012-07-23 15:15:26 +02:00
"line" : 33 ,
2012-07-18 18:31:44 +02:00
"uses" : [
2012-07-23 22:08:09 +02:00
"Draggable" ,
2012-07-18 18:31:44 +02:00
"Collision"
],
"params" : [
{
"name" : "el" ,
"description" : "The HTMLelement that contains all the widgets." ,
"type" : "HTMLElement"
},
{
"name" : "options" ,
"description" : "An Object with all options you want to\n overwrite:" ,
"type" : "Object" ,
"optional" : true ,
"props" : [
{
"name" : "widget_selector" ,
2012-07-19 11:16:29 +02:00
"description" : "Define who will\n be the draggable widgets. Can be a CSS Selector String or a\n collection of HTMLElements" ,
2012-07-18 18:31:44 +02:00
"type" : "HTMLElement|String" ,
"optional" : true
},
{
"name" : "widget_margins" ,
2012-07-19 11:16:29 +02:00
"description" : "Margin between widgets.\n The first index for the horizontal margin (left, right) and\n the second for the vertical margin (top, bottom)." ,
2012-07-18 18:31:44 +02:00
"type" : "Array" ,
"optional" : true
},
{
"name" : "widget_base_dimensions" ,
2012-07-19 11:16:29 +02:00
"description" : "Base widget dimensions\n in pixels. The first index for the width and the second for the\n height." ,
2012-07-18 18:31:44 +02:00
"type" : "Array" ,
"optional" : true
},
{
"name" : "extra_cols" ,
"description" : "Add more columns in addition to\n those that have been calculated." ,
"type" : "Number" ,
"optional" : true
},
{
"name" : "extra_rows" ,
"description" : "Add more rows in addition to\n those that have been calculated." ,
"type" : "Number" ,
"optional" : true
},
{
"name" : "min_cols" ,
"description" : "The minimum required columns." ,
"type" : "Number" ,
"optional" : true
},
{
"name" : "min_rows" ,
"description" : "The minimum required rows." ,
"type" : "Number" ,
"optional" : true
},
{
"name" : "autogenerate_stylesheet" ,
"description" : "If true, all the\n CSS required to position all widgets in their respective columns\n and rows will be generated automatically and injected to the\n `<head>` of the document. You can set this to false, and write\n your own CSS targeting rows and cols via data-attributes like so:\n `[data-col=\"1\"] { left: 10px; }`" ,
"type" : "Boolean" ,
"optional" : true
},
2012-07-23 22:51:04 +02:00
{
"name" : "avoid_overlapped_widgets" ,
"description" : "Avoid that widgets loaded\n from the DOM can be overlapped. It is helpful if the positions were\n bad stored in the database or if there was any conflict." ,
"type" : "Boolean" ,
"optional" : true
},
2012-07-18 18:31:44 +02:00
{
"name" : "serialize_params" ,
"description" : "Return the data you want\n for each widget in the serialization. Two arguments are passed:\n `$w`: the jQuery wrapped HTMLElement, and `wgd`: the grid\n coords object (`col`, `row`, `size_x`, `size_y`)." ,
"type" : "Function" ,
"optional" : true
},
{
"name" : "collision" ,
"description" : "An Object with all options for\n Collision class you want to overwrite. See Collision docs for\n more info." ,
"type" : "Object" ,
"optional" : true
},
{
"name" : "draggable" ,
2012-07-23 22:08:09 +02:00
"description" : "An Object with all options for\n Draggable class you want to overwrite. See Draggable docs for more\n info." ,
2012-07-18 18:31:44 +02:00
"type" : "Object" ,
"optional" : true
}
]
}
],
"is_constructor" : 1
}
},
"classitems" : [
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 108 ,
2012-07-23 15:15:26 +02:00
"description" : "Disable dragging." ,
"itemtype" : "method" ,
"name" : "enable" ,
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 121 ,
2012-07-23 15:15:26 +02:00
"description" : "Enable dragging." ,
"itemtype" : "method" ,
"name" : "enable" ,
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 133 ,
2012-07-18 18:31:44 +02:00
"description" : "Add a new widget to the grid." ,
"itemtype" : "method" ,
"name" : "add_widget" ,
"params" : [
{
"name" : "html" ,
"description" : "The string representing the HTML of the widget." ,
"type" : "String"
},
{
"name" : "size_x" ,
"description" : "The nº of rows the widget occupies horizontally." ,
"type" : "Number"
},
{
"name" : "size_y" ,
"description" : "The nº of columns the widget occupies vertically." ,
"type" : "Number"
}
],
"return" : {
2012-07-23 15:15:26 +02:00
"description" : "Returns the jQuery wrapped HTMLElement representing.\n the widget that was just created." ,
2012-07-18 18:31:44 +02:00
"type" : "HTMLElement"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 163 ,
2012-07-19 15:56:12 +02:00
"description" : "Get the most left column below to add a new widget." ,
"itemtype" : "method" ,
"name" : "next_position" ,
"params" : [
{
"name" : "size_x" ,
"description" : "The nº of rows the widget occupies horizontally." ,
"type" : "Number"
},
{
"name" : "size_y" ,
"description" : "The nº of columns the widget occupies vertically." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns a grid coords object representing the future\n widget coords." ,
"type" : "Object"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 205 ,
2012-07-18 18:31:44 +02:00
"description" : "Remove a widget from the grid." ,
"itemtype" : "method" ,
"name" : "remove_widget" ,
"params" : [
{
"name" : "el" ,
"description" : "The jQuery wrapped HTMLElement you want to remove." ,
"type" : "HTMLElement"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 237 ,
2012-07-18 18:31:44 +02:00
"description" : "Returns a serialized array of the widgets in the grid." ,
"itemtype" : "method" ,
"name" : "serialize" ,
"params" : [
{
"name" : "$widgets" ,
"description" : "The collection of jQuery wrapped\n HTMLElements you want to serialize. If no argument is passed all widgets\n will be serialized." ,
"type" : "HTMLElement" ,
"optional" : true
}
],
"return" : {
"description" : "Returns an Array of Objects with the data specified in\n the serialize_params option." ,
"type" : "Array"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 259 ,
"description" : "Returns a serialized array of the widgets that have changed their\n position." ,
2012-07-18 18:31:44 +02:00
"itemtype" : "method" ,
"name" : "serialize_changed" ,
"return" : {
"description" : "Returns an Array of Objects with the data specified in\n the serialize_params option." ,
"type" : "Array"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 272 ,
2012-07-19 11:16:29 +02:00
"description" : "Creates the grid coords object representing the widget a add it to the\nmapped array of positions." ,
2012-07-18 18:31:44 +02:00
"itemtype" : "method" ,
2012-07-18 19:08:36 +02:00
"name" : "register_widget" ,
2012-07-18 18:31:44 +02:00
"return" : {
"description" : "Returns the instance of the Gridster class." ,
"type" : "Array"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 315 ,
2012-07-18 18:31:44 +02:00
"description" : "Update in the mapped array of positions the value of cells represented by\nthe grid coords object passed in the `grid_data` param." ,
"params" : [
{
"name" : "grid_data" ,
"description" : "The grid coords object representing the cells\n to update in the mapped array." ,
"type" : "Object"
},
{
"name" : "value" ,
"description" : "Pass `false` or the jQuery wrapped\n HTMLElement, depends if you want to delete an existing position or add\n a new one." ,
"type" : "HTMLElement|Boolean"
}
],
"itemtype" : "method" ,
"name" : "update_widget_position" ,
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 336 ,
2012-07-18 18:31:44 +02:00
"description" : "Remove a widget from the mapped array of positions." ,
"itemtype" : "method" ,
"name" : "remove_from_gridmap" ,
"params" : [
{
"name" : "grid_data" ,
"description" : "The grid coords object representing the cells\n to update in the mapped array." ,
"type" : "Object"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 349 ,
2012-07-18 18:31:44 +02:00
"description" : "Add a widget to the mapped array of positions." ,
"itemtype" : "method" ,
"name" : "add_to_gridmap" ,
"params" : [
{
"name" : "grid_data" ,
"description" : "The grid coords object representing the cells\n to update in the mapped array." ,
"type" : "Object"
},
{
"name" : "value" ,
"description" : "The value to set in the specified\n position ." ,
"type" : "HTMLElement|Boolean"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 371 ,
"description" : "Make widgets draggable." ,
"uses" : [
"Draggable"
],
2012-07-18 18:31:44 +02:00
"itemtype" : "method" ,
"name" : "draggable" ,
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 410 ,
2012-07-18 18:31:44 +02:00
"description" : "This function is executed when the player begins to be dragged." ,
"itemtype" : "method" ,
"name" : "on_start_drag" ,
"params" : [
{
"name" : "The" ,
"description" : "original browser event" ,
"type" : "Event"
},
{
"name" : "A" ,
2012-07-23 22:08:09 +02:00
"description" : "prepared ui object." ,
2012-07-18 18:31:44 +02:00
"type" : "Object"
}
],
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 461 ,
2012-07-18 18:31:44 +02:00
"description" : "This function is executed when the player is being dragged." ,
"itemtype" : "method" ,
"name" : "on_drag" ,
"params" : [
{
"name" : "The" ,
"description" : "original browser event" ,
"type" : "Event"
},
{
"name" : "A" ,
2012-07-23 22:08:09 +02:00
"description" : "prepared ui object." ,
2012-07-18 18:31:44 +02:00
"type" : "Object"
}
],
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 499 ,
2012-07-18 18:31:44 +02:00
"description" : "This function is executed when the player stops being dragged." ,
"itemtype" : "method" ,
"name" : "on_stop_drag" ,
"params" : [
{
"name" : "The" ,
"description" : "original browser event" ,
"type" : "Event"
},
{
"name" : "A" ,
2012-07-23 22:08:09 +02:00
"description" : "prepared ui object." ,
2012-07-18 18:31:44 +02:00
"type" : "Object"
}
],
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 555 ,
2012-07-18 18:31:44 +02:00
"description" : "Executes the callbacks passed as arguments when a column begins to be\noverlapped or stops being overlapped." ,
"params" : [
{
"name" : "start_callback" ,
"description" : "Function executed when a new column\n begins to be overlapped. The column is passed as first argument." ,
"type" : "Function"
},
{
"name" : "stop_callback" ,
"description" : "Function executed when a column stops\n being overlapped. The column is passed as first argument." ,
"type" : "Function"
}
],
"itemtype" : "method" ,
"name" : "on_overlapped_column_change" ,
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 595 ,
2012-07-18 18:31:44 +02:00
"description" : "Executes the callbacks passed as arguments when a row starts to be\noverlapped or stops being overlapped." ,
"params" : [
{
"name" : "start_callback" ,
"description" : "Function executed when a new row begins\n to be overlapped. The row is passed as first argument." ,
"type" : "Function"
},
{
"name" : "stop_callback" ,
"description" : "Function executed when a row stops being\n overlapped. The row is passed as first argument." ,
"type" : "Function"
}
],
"itemtype" : "method" ,
"name" : "on_overlapped_row_change" ,
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 631 ,
2012-07-18 18:31:44 +02:00
"description" : "Sets the current position of the player" ,
"params" : [
{
"name" : "start_callback" ,
"description" : "Function executed when a new row begins\n to be overlapped. The row is passed as first argument." ,
"type" : "Function"
},
{
"name" : "stop_callback" ,
"description" : "Function executed when a row stops being\n overlapped. The row is passed as first argument." ,
"type" : "Function"
}
],
"itemtype" : "method" ,
"name" : "set_player" ,
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 684 ,
2012-07-18 18:31:44 +02:00
"description" : "See which of the widgets in the $widgets param collection can go to\na upper row and which not." ,
"itemtype" : "method" ,
"name" : "widgets_contraints" ,
"params" : [
{
"name" : "$widgets" ,
"description" : "A jQuery wrapped collection of\nHTMLElements." ,
"type" : "HTMLElements"
}
],
"return" : {
"description" : "Returns a literal Object with two keys: `can_go_up` &\n`can_not_go_up`. Each contains a set of HTMLElements." ,
"type" : "Array"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 720 ,
2012-07-19 11:16:29 +02:00
"description" : "Sorts an Array of grid coords objects (representing the grid coords of\neach widget) in ascending way." ,
2012-07-18 18:31:44 +02:00
"itemtype" : "method" ,
"name" : "sort_by_row_asc" ,
"params" : [
{
"name" : "widgets" ,
"description" : "Array of grid coords objects" ,
"type" : "Array"
}
],
"return" : {
"description" : "Returns the array sorted." ,
"type" : "Array"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 740 ,
2012-07-23 15:15:26 +02:00
"description" : "Sorts an Array of grid coords objects (representing the grid coords of\neach widget) placing first the empty cells upper left." ,
"itemtype" : "method" ,
2012-07-24 10:35:07 +02:00
"name" : "sort_by_row_and_col_asc" ,
2012-07-23 15:15:26 +02:00
"params" : [
{
"name" : "widgets" ,
"description" : "Array of grid coords objects" ,
"type" : "Array"
}
],
"return" : {
"description" : "Returns the array sorted." ,
"type" : "Array"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 760 ,
2012-07-19 16:45:01 +02:00
"description" : "Sorts an Array of grid coords objects by column (representing the grid\ncoords of each widget) in ascending way." ,
"itemtype" : "method" ,
2012-07-24 10:35:07 +02:00
"name" : "sort_by_col_asc" ,
2012-07-19 16:45:01 +02:00
"params" : [
{
"name" : "widgets" ,
"description" : "Array of grid coords objects" ,
"type" : "Array"
}
],
"return" : {
"description" : "Returns the array sorted." ,
"type" : "Array"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 780 ,
2012-07-19 11:16:29 +02:00
"description" : "Sorts an Array of grid coords objects (representing the grid coords of\neach widget) in descending way." ,
2012-07-18 18:31:44 +02:00
"itemtype" : "method" ,
"name" : "sort_by_row_desc" ,
"params" : [
{
"name" : "widgets" ,
"description" : "Array of grid coords objects" ,
"type" : "Array"
}
],
"return" : {
"description" : "Returns the array sorted." ,
"type" : "Array"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 799 ,
2012-07-19 11:16:29 +02:00
"description" : "Sorts an Array of grid coords objects (representing the grid coords of\neach widget) in descending way." ,
2012-07-18 18:31:44 +02:00
"itemtype" : "method" ,
"name" : "manage_movements" ,
"params" : [
{
"name" : "$widgets" ,
"description" : "A jQuery collection of HTMLElements\n representing the widgets you want to move." ,
"type" : "HTMLElements"
},
{
"name" : "to_col" ,
"description" : "The column to which we want to move the widgets." ,
"type" : "Number"
},
{
"name" : "to_row" ,
"description" : "The row to which we want to move the widgets." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 845 ,
2012-07-18 18:31:44 +02:00
"description" : "Determines if there is a widget in the row and col given. Or if the\nHTMLElement passed as first argument is the player." ,
"itemtype" : "method" ,
"name" : "is_player" ,
"params" : [
{
"name" : "col_or_el" ,
"description" : "A jQuery wrapped collection of\nHTMLElements." ,
"type" : "Number|HTMLElement"
},
{
"name" : "row" ,
"description" : "The column to which we want to move the widgets." ,
"type" : "Number" ,
"optional" : true
}
],
"return" : {
"description" : "Returns true or false." ,
"type" : "Boolean"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 862 ,
2012-07-18 18:31:44 +02:00
"description" : "Determines if the widget that is being dragged is currently over the row\nand col given." ,
"itemtype" : "method" ,
"name" : "is_player_in" ,
"params" : [
{
"name" : "col" ,
"description" : "The column to check." ,
"type" : "Number"
},
{
"name" : "row" ,
"description" : "The row to check." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns true or false." ,
"type" : "Boolean"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 877 ,
2012-07-18 18:31:44 +02:00
"description" : "Determines if the placeholder is currently over the row and col given." ,
"itemtype" : "method" ,
"name" : "is_placeholder_in" ,
"params" : [
{
"name" : "col" ,
"description" : "The column to check." ,
"type" : "Number"
},
{
"name" : "row" ,
"description" : "The row to check." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns true or false." ,
"type" : "Boolean"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 891 ,
2012-07-18 19:08:36 +02:00
"description" : "Determines if the placeholder is currently over the column given." ,
2012-07-18 18:31:44 +02:00
"itemtype" : "method" ,
2012-07-18 19:08:36 +02:00
"name" : "is_placeholder_in_col" ,
2012-07-18 18:31:44 +02:00
"params" : [
{
"name" : "col" ,
"description" : "The column to check." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns true or false." ,
"type" : "Boolean"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 904 ,
2012-07-18 18:31:44 +02:00
"description" : "Determines if the cell represented by col and row params is empty." ,
"itemtype" : "method" ,
"name" : "is_empty" ,
"params" : [
{
"name" : "col" ,
"description" : "The column to check." ,
"type" : "Number"
},
{
"name" : "row" ,
"description" : "The row to check." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns true or false." ,
"type" : "Boolean"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 923 ,
2012-07-18 18:31:44 +02:00
"description" : "Determines if the cell represented by col and row params is occupied." ,
"itemtype" : "method" ,
"name" : "is_occupied" ,
"params" : [
{
"name" : "col" ,
"description" : "The column to check." ,
"type" : "Number"
},
{
"name" : "row" ,
"description" : "The row to check." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns true or false." ,
"type" : "Boolean"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 943 ,
2012-07-18 18:31:44 +02:00
"description" : "Determines if there is a widget in the cell represented by col/row params." ,
"itemtype" : "method" ,
"name" : "is_widget" ,
"params" : [
{
"name" : "col" ,
"description" : "The column to check." ,
"type" : "Number"
},
{
"name" : "row" ,
"description" : "The row to check." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns false if there is no widget,\nelse returns the jQuery HTMLElement" ,
"type" : "Boolean|HTMLElement"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 968 ,
2012-07-18 18:31:44 +02:00
"description" : "Determines if there is a widget in the cell represented by col/row\nparams and if this is under the widget that is being dragged." ,
"itemtype" : "method" ,
"name" : "is_widget_under_player" ,
"params" : [
{
"name" : "col" ,
"description" : "The column to check." ,
"type" : "Number"
},
{
"name" : "row" ,
"description" : "The row to check." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns true or false." ,
"type" : "Boolean"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 985 ,
2012-07-18 18:31:44 +02:00
"description" : "Get widgets overlapping with the player." ,
"itemtype" : "method" ,
"name" : "get_widgets_under_player" ,
"return" : {
"description" : "Returns a jQuery collection of HTMLElements" ,
"type" : "HTMLElement"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1007 ,
2012-07-18 18:31:44 +02:00
"description" : "Put placeholder at the row and column specified." ,
"itemtype" : "method" ,
"name" : "set_placeholder" ,
"params" : [
{
"name" : "col" ,
"description" : "The column to which we want to move the\n placeholder." ,
"type" : "Number"
},
{
"name" : "row" ,
"description" : "The row to which we want to move the\n placeholder." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1056 ,
2012-07-18 18:31:44 +02:00
"description" : "Determines whether the player can move to a position above." ,
"itemtype" : "method" ,
"name" : "can_go_player_up" ,
"params" : [
{
"name" : "widget_grid_data" ,
"description" : "The actual grid coords object of the\n player." ,
"type" : "Object"
}
],
"return" : {
"description" : "If the player can be moved to an upper row\n returns the row number, else returns false." ,
"type" : "Number|Boolean"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1105 ,
2012-07-18 18:31:44 +02:00
"description" : "Determines whether a widget can move to a position above." ,
"itemtype" : "method" ,
"name" : "can_go_widget_up" ,
"params" : [
{
"name" : "widget_grid_data" ,
"description" : "The actual grid coords object of the\n widget we want to check." ,
"type" : "Object"
}
],
"return" : {
"description" : "If the widget can be moved to an upper row\n returns the row number, else returns false." ,
"type" : "Number|Boolean"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1158 ,
2012-07-18 18:31:44 +02:00
"description" : "Search a valid row for the widget represented by `widget_grid_data' in\nthe `upper_rows` array. Iteration starts from row specified in `min_row`." ,
"itemtype" : "method" ,
"name" : "get_valid_rows" ,
"params" : [
{
"name" : "widget_grid_data" ,
"description" : "The actual grid coords object of the\n player." ,
"type" : "Object"
},
{
"name" : "upper_rows" ,
"description" : "An array with columns as index and arrays\n of valid rows as values." ,
"type" : "Array"
},
{
"name" : "min_row" ,
"description" : "The upper row from which the iteration will start." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns the upper row valid from the `upper_rows`\n for the widget in question." ,
"type" : "Number|Boolean"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1236 ,
2012-07-18 18:31:44 +02:00
"description" : "Get widgets overlapping with the player." ,
"itemtype" : "method" ,
"name" : "get_widgets_overlapped" ,
"return" : {
"description" : "Returns a jQuery collection of HTMLElements." ,
"type" : "HTMLElements"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1269 ,
2012-07-18 18:31:44 +02:00
"description" : "This callback is executed when the player begins to collide with a column." ,
"itemtype" : "method" ,
"name" : "on_start_overlapping_column" ,
"params" : [
{
"name" : "col" ,
"description" : "The collided column." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns a jQuery collection of HTMLElements." ,
"type" : "HTMLElements"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1281 ,
2012-07-18 18:31:44 +02:00
"description" : "A callback executed when the player begins to collide with a row." ,
"itemtype" : "method" ,
"name" : "on_start_overlapping_row" ,
"params" : [
{
"name" : "col" ,
"description" : "The collided row." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns a jQuery collection of HTMLElements." ,
"type" : "HTMLElements"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1293 ,
2012-07-18 18:31:44 +02:00
"description" : "A callback executed when the the player ends to collide with a column." ,
"itemtype" : "method" ,
"name" : "on_stop_overlapping_column" ,
"params" : [
{
"name" : "col" ,
"description" : "The collided row." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns a jQuery collection of HTMLElements." ,
"type" : "HTMLElements"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1311 ,
2012-07-18 18:31:44 +02:00
"description" : "This callback is executed when the player ends to collide with a row." ,
"itemtype" : "method" ,
"name" : "on_stop_overlapping_row" ,
"params" : [
{
"name" : "row" ,
"description" : "The collided row." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns a jQuery collection of HTMLElements." ,
"type" : "HTMLElements"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1331 ,
2012-07-18 18:31:44 +02:00
"description" : "Move a widget to a specific row. The cell or cells must be empty.\nIf the widget has widgets below, all of these widgets will be moved also\nif they can." ,
"itemtype" : "method" ,
"name" : "move_widget_to" ,
"params" : [
{
"name" : "$widget" ,
2012-07-23 22:08:09 +02:00
"description" : "The jQuery wrapped HTMLElement of the\nwidget is going to be moved." ,
2012-07-18 18:31:44 +02:00
"type" : "HTMLElement"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1375 ,
2012-07-18 18:31:44 +02:00
"description" : "Move up the specified widget and all below it." ,
"itemtype" : "method" ,
"name" : "move_widget_up" ,
"params" : [
{
"name" : "$widget" ,
"description" : "The widget you want to move." ,
"type" : "HTMLElement"
},
{
"name" : "y_units" ,
"description" : "The number of cells that the widget has to move." ,
"type" : "Number" ,
"optional" : true
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1423 ,
2012-07-18 18:31:44 +02:00
"description" : "Move down the specified widget and all below it." ,
"itemtype" : "method" ,
"name" : "move_widget_down" ,
"params" : [
{
"name" : "$widget" ,
2012-07-23 22:08:09 +02:00
"description" : "The jQuery object representing the widget\n you want to move." ,
2012-07-18 18:31:44 +02:00
"type" : "HTMLElement"
},
{
"name" : "The" ,
"description" : "number of cells that the widget has to move." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1469 ,
2012-07-18 18:31:44 +02:00
"description" : "Check if the widget can move to the specified row, else returns the\nupper row possible." ,
"itemtype" : "method" ,
"name" : "can_go_up_to_row" ,
"params" : [
{
"name" : "widget_grid_data" ,
"description" : "The current grid coords object of the\n widget." ,
"type" : "Number"
},
{
"name" : "col" ,
"description" : "The target column." ,
"type" : "Number"
},
{
"name" : "row" ,
"description" : "The target row." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns the row number if the widget can move\n to the target position, else returns false." ,
"type" : "Boolean|Number"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1560 ,
2012-07-18 18:31:44 +02:00
"description" : "Get widgets below a widget." ,
"itemtype" : "method" ,
"name" : "widgets_below" ,
"params" : [
{
"name" : "$el" ,
"description" : "The jQuery wrapped HTMLElement." ,
"type" : "HTMLElement"
}
],
"return" : {
"description" : "A jQuery collection of HTMLElements." ,
"type" : "HTMLElements"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1589 ,
2012-07-18 18:31:44 +02:00
"description" : "Update the array of mapped positions with the new player position." ,
"itemtype" : "method" ,
"name" : "set_cells_player_occupies" ,
"params" : [
{
"name" : "col" ,
"description" : "The new player col." ,
"type" : "Number"
},
{
"name" : "col" ,
"description" : "The new player row." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1606 ,
2012-07-18 18:31:44 +02:00
"description" : "Remove from the array of mapped positions the reference to the player." ,
"itemtype" : "method" ,
"name" : "empty_cells_player_occupies" ,
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1644 ,
"description" : "Check if it's possible to move a widget to a specific col/row. It takes\ninto account the dimensions (`size_y` and `size_x` attrs. of the grid\n coords object) the widget occupies." ,
2012-07-18 18:31:44 +02:00
"itemtype" : "method" ,
"name" : "can_move_to" ,
"params" : [
{
"name" : "widget_grid_data" ,
"description" : "The grid coords object that represents\n the widget." ,
"type" : "Object"
},
{
"name" : "The" ,
"description" : "col target col." ,
"type" : "Object"
},
{
"name" : "The" ,
"description" : "row target row." ,
"type" : "Object"
}
],
"return" : {
"description" : "Returns true if all cells are empty, else return false." ,
"type" : "Boolean"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1684 ,
"description" : "Given the leftmost column returns all columns that are overlapping\n with the player." ,
2012-07-18 18:31:44 +02:00
"itemtype" : "method" ,
"name" : "get_targeted_columns" ,
"params" : [
{
"name" : "from_col" ,
"description" : "The leftmost column." ,
"type" : "Number" ,
"optional" : true
}
],
"return" : {
"description" : "Returns an array with column numbers." ,
"type" : "Array"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1703 ,
2012-07-18 18:31:44 +02:00
"description" : "Given the upper row returns all rows that are overlapping with the player." ,
"itemtype" : "method" ,
"name" : "get_targeted_rows" ,
"params" : [
{
"name" : "from_row" ,
"description" : "The upper row." ,
"type" : "Number" ,
"optional" : true
}
],
"return" : {
"description" : "Returns an array with row numbers." ,
"type" : "Array"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1720 ,
2012-07-18 18:31:44 +02:00
"description" : "Get all columns and rows that a widget occupies." ,
"itemtype" : "method" ,
"name" : "get_cells_occupied" ,
"params" : [
{
"name" : "el_grid_data" ,
"description" : "The grid coords object of the widget." ,
"type" : "Object"
}
],
"return" : {
"description" : "Returns an object like `{ cols: [], rows: []}`." ,
"type" : "Object"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1748 ,
2012-07-18 18:31:44 +02:00
"description" : "Iterate over the cells occupied by a widget executing a function for\neach one." ,
"itemtype" : "method" ,
2012-07-18 19:08:36 +02:00
"name" : "for_each_cell_occupied" ,
2012-07-18 18:31:44 +02:00
"params" : [
{
"name" : "el_grid_data" ,
"description" : "The grid coords object that represents the\n widget." ,
"type" : "Object"
},
{
"name" : "callback" ,
"description" : "The function to execute on each column\n iteration. Column and row are passed as arguments." ,
"type" : "Function"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1769 ,
2012-07-18 18:31:44 +02:00
"description" : "Iterate over the columns occupied by a widget executing a function for\neach one." ,
"itemtype" : "method" ,
"name" : "for_each_column_occupied" ,
"params" : [
{
"name" : "el_grid_data" ,
"description" : "The grid coords object that represents\n the widget." ,
"type" : "Object"
},
{
"name" : "callback" ,
"description" : "The function to execute on each column\n iteration. The column number is passed as first argument." ,
"type" : "Function"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1788 ,
2012-07-18 18:31:44 +02:00
"description" : "Iterate over the rows occupied by a widget executing a function for\neach one." ,
"itemtype" : "method" ,
"name" : "for_each_row_occupied" ,
"params" : [
{
"name" : "el_grid_data" ,
"description" : "The grid coords object that represents\n the widget." ,
"type" : "Object"
},
{
"name" : "callback" ,
2012-07-23 22:08:09 +02:00
"description" : "The function to execute on each column\n iteration. The row number is passed as first argument." ,
2012-07-18 18:31:44 +02:00
"type" : "Function"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1855 ,
2012-07-18 18:31:44 +02:00
"description" : "Iterate over each widget above the column and row specified." ,
"itemtype" : "method" ,
"name" : "for_each_widget_above" ,
"params" : [
{
"name" : "col" ,
"description" : "The column to start iterating." ,
"type" : "Number"
},
{
"name" : "row" ,
"description" : "The row to start iterating." ,
"type" : "Number"
},
{
"name" : "callback" ,
2012-07-23 22:08:09 +02:00
"description" : "The function to execute on each widget\n iteration. The value of `this` inside the function is the jQuery\n wrapped HTMLElement." ,
2012-07-18 18:31:44 +02:00
"type" : "Function"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1872 ,
2012-07-18 18:31:44 +02:00
"description" : "Iterate over each widget below the column and row specified." ,
"itemtype" : "method" ,
"name" : "for_each_widget_below" ,
"params" : [
{
"name" : "col" ,
"description" : "The column to start iterating." ,
"type" : "Number"
},
{
"name" : "row" ,
"description" : "The row to start iterating." ,
"type" : "Number"
},
{
"name" : "callback" ,
2012-07-23 22:08:09 +02:00
"description" : "The function to execute on each widget\n iteration. The value of `this` inside the function is the jQuery wrapped\n HTMLElement." ,
2012-07-18 18:31:44 +02:00
"type" : "Function"
}
],
"return" : {
"description" : "Returns the instance of the Gridster Class." ,
"type" : "Class"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1889 ,
2012-07-18 18:31:44 +02:00
"description" : "Returns the highest occupied cell in the grid." ,
"itemtype" : "method" ,
"name" : "get_highest_occupied_cell" ,
"return" : {
"description" : "Returns an object with `col` and `row` numbers." ,
"type" : "Object"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1947 ,
2012-07-18 18:31:44 +02:00
"description" : "Set the current height of the parent grid." ,
"itemtype" : "method" ,
"name" : "set_dom_grid_height" ,
"return" : {
"description" : "Returns the instance of the Gridster class." ,
"type" : "Object"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 1960 ,
2012-07-18 18:31:44 +02:00
"description" : "It generates the neccessary styles to position the widgets." ,
"itemtype" : "method" ,
"name" : "generate_stylesheet" ,
"params" : [
{
"name" : "rows" ,
"description" : "Number of columns." ,
"type" : "Number"
},
{
"name" : "cols" ,
"description" : "Number of rows." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns the instance of the Gridster class." ,
"type" : "Object"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 2030 ,
2012-07-18 18:31:44 +02:00
"description" : "Injects the given CSS as string to the head of the document." ,
"itemtype" : "method" ,
2012-07-18 19:08:36 +02:00
"name" : "add_style_tag" ,
2012-07-18 18:31:44 +02:00
"params" : [
{
"name" : "css" ,
"description" : "The styles to apply." ,
"type" : "String"
}
],
"return" : {
"description" : "Returns the instance of the Gridster class." ,
"type" : "Object"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 2053 ,
2012-07-18 18:31:44 +02:00
"description" : "Generates a faux grid to collide with it when a widget is dragged and\ndetect row or column that we want to go." ,
"itemtype" : "method" ,
"name" : "generate_faux_grid" ,
"params" : [
{
"name" : "rows" ,
"description" : "Number of columns." ,
"type" : "Number"
},
{
"name" : "cols" ,
"description" : "Number of rows." ,
"type" : "Number"
}
],
"return" : {
"description" : "Returns the instance of the Gridster class." ,
"type" : "Object"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 2089 ,
2012-07-19 11:16:29 +02:00
"description" : "Recalculates the offsets for the faux grid. You need to use it when\nthe browser is resized." ,
"itemtype" : "method" ,
"name" : "recalculate_faux_grid" ,
"return" : {
"description" : "Returns the instance of the Gridster class." ,
"type" : "Object"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 2113 ,
2012-07-18 18:31:44 +02:00
"description" : "Get all widgets in the DOM and register them." ,
"itemtype" : "method" ,
"name" : "get_widgets_from_DOM" ,
"return" : {
"description" : "Returns the instance of the Gridster class." ,
"type" : "Object"
},
"class" : "Gridster"
},
{
"file" : "src/jquery.gridster.js" ,
2012-07-23 22:08:09 +02:00
"line" : 2127 ,
2012-07-18 18:31:44 +02:00
"description" : "Calculate columns and rows to be set based on the configuration\n parameters, grid dimensions, etc ..." ,
"itemtype" : "method" ,
"name" : "generate_grid_and_stylesheet" ,
"return" : {
"description" : "Returns the instance of the Gridster class." ,
"type" : "Object"
},
"class" : "Gridster"
}
]
}