c0d0cd33ce
Merge pull request #154 from tuvokki/master
...
Add setting for maximum number of columns
2013-04-24 08:08:12 -07:00
5569caa687
Add max_cols setting
...
Right now the number of columns is calculated by dividing the available
space by the necessary space. I want to have an option to limit the
number of calculated columns, without changing the width of the div my
grid lives in.
In order to limit the number of calculated columns max_cols is set to a
number. To have 'unlimited' columns set the value of max_cols to -1 (as
ids done in the default settings). This provides the arbitrary useful
functionality to set the max number of columns to 0. Any sideeffect
caused by this are mitigated by checking that the max_cols is larger
than the min_cols setting.
2013-04-11 14:18:54 +02:00
6302b988d1
Fix for not removing stylesheets on destroy
2013-04-09 12:27:04 +00:00
6eb521015c
Update Readme
2013-04-03 09:45:34 -07:00
412ee61bbe
Updated sample
2013-04-03 09:44:16 -07:00
3cc9485ae0
Better handling of widgets slideing down
2013-04-03 09:36:13 -07:00
762dd445a1
update readme
2013-04-02 09:07:22 -07:00
51ba8f9dfc
rebuilt dist
2013-04-02 09:06:20 -07:00
cb98d7d43b
Merge branch 'master' of https://github.com/dustmoo/gridster.js
2013-04-02 09:05:52 -07:00
8b2f7484dc
Added Swap Demo
2013-04-02 09:04:53 -07:00
b58f1454a5
Merge pull request #125 from brokenseal/master
...
Possible solution to memory leak #124
2013-04-02 07:52:59 -07:00
1748e6f22b
Merge pull request #7 from sbehrends/patch-1
...
Added disabled dragging init feature gridster.js - Thank you sbehrends
2013-04-01 10:31:52 -07:00
1d5883bde1
Added disabled dragging init feature gridster.js
...
In initial options you can disble draggin by adding disable_drag: true on options list at initialising gridster
2013-04-01 20:29:30 +03:00
d6f696e4f5
Merge pull request #76 from pushmatrix/master
...
Fix inverted arguments for a collision callback
2013-03-22 10:10:15 -07:00
ac8894d4bb
Working on Static widgets
2013-02-28 13:52:34 -08:00
8f431a4233
Updated Readme
2013-02-27 15:15:41 -08:00
0badd03830
Updated Readme
2013-02-27 15:14:00 -08:00
953fa8181d
Merge branch 'mapapp'
2013-02-27 12:00:53 -08:00
54099ecf6c
Version Updates
2013-02-27 11:58:00 -08:00
7f3f679cb6
Fixed a minor issue when trying to destroy a non existing drag_api
2013-02-15 16:50:35 +01:00
7217b040e6
Built new version
2013-02-15 15:25:44 +01:00
233129b183
Bound leftover callbacks are one of the main causes of memory leaks, let's remove them inside the destroy method
2013-02-15 15:25:09 +01:00
ac2908e1a2
Added a destroy method on the Gridster class
2013-02-15 14:30:20 +01:00
36bec0bb14
Fixed a couple of errors in the methods definition
...
Added my own IDE filed in the .gitignore file
2013-02-15 14:29:54 +01:00
3ebf5fa95e
Serialize bug fix
2012-12-10 14:33:25 -08:00
44019ca787
Added max_rows and drag restriction - ready for integration :)
2012-11-28 08:52:36 -08:00
179b706cfa
Removed console.logs
2012-11-28 08:26:54 -08:00
ea77853b07
Removed console.logs
2012-11-28 08:01:21 -08:00
6786984511
Good enough swap logic for now
2012-11-28 07:58:37 -08:00
a3d2b09b8a
Swap queue awesomeness
2012-11-27 14:55:15 -08:00
24cd3be70d
Swap queue awesomeness
2012-11-27 14:10:11 -08:00
32e5f54670
Fix row issue
2012-11-26 16:44:12 -08:00
136923ec50
working on map grid functionality
2012-11-26 16:43:08 -08:00
262d115cf8
Added swaping queue, better handling of large to small swaps
2012-11-26 15:23:00 -08:00
98204f1c69
Added swaping queue, better handling of large to small swaps
2012-11-26 15:20:15 -08:00
773828731c
More predictable default behavior
2012-11-20 12:02:29 -08:00
95ce88cfb3
Updated Readme
2012-11-20 10:23:51 -08:00
67465875aa
Added property to prevent larger widget shifting
2012-11-20 10:16:19 -08:00
898b77d2d3
Added grid-swap behavior
2012-11-20 10:07:38 -08:00
ce391ae13e
Fix inverted arguments for a collision callback
...
The start and stop callbacks on this line seem to be backwards.
2012-11-01 01:47:07 -03:00
b538d64969
updated dist
2012-10-20 01:52:08 +02:00
55edd11ef8
gridster: new method remove_all_widgets
...
Remove multiple widgets without chaining callbacks was not possible so I've added a new argument to remove_widget method named `silent` which if it's value is true, widgets below the removed will not move up.
Also added the method remove_all_widgets.
Fixes #63
2012-10-20 01:37:41 +02:00
c75db76f4e
updated dist
2012-10-20 00:14:14 +02:00
a20f3d53b5
ignoring demo folder
2012-10-20 00:12:47 +02:00
552df22e1c
Allow for an optional drag handle to be specified
...
When defining the gridster, you can now define a draggable.handle selector:
For example:
$("#widgets").gridster({
widget_margins: [10, 10],
widget_base_dimensions: [565, 400],
draggable: {
stop: function(event, ui) {
console.log('save new columns');
},
handle: '.title'
}
});
If handle is omitted (or left blank), it works as it did previously. If a value is specified, then dragging only starts if the element which was clicked matches the selector specified.
Added by @vieron:
Closes #29
2012-10-20 00:12:10 +02:00
07b34131bd
update dist
2012-10-15 16:27:12 +02:00
68f1d6279c
Avoid dynamic column generation.
...
Using add_faux_col each time a new widget is added to the grid caused the widget was always positioned in the first row on the right. Related to #60 .
2012-10-15 15:47:31 +02:00
a5d122246d
updated dist
2012-10-07 21:45:06 +02:00
5411836c88
events/onselectstart: Don't prevent default behaviour on form fields
...
Fixes #56 .
2012-10-07 21:36:58 +02:00
5a3c382c8b
Immediate children selection for widgets. Fixes #52 .
2012-10-07 21:12:38 +02:00