Update dist. (+14 squashed commits)
Squashed commits: [50607a9] build dist [ff0c00b] Allow negative numbers to be passed to parseHeight function test case fix [3ecc1ca] Allow negative numbers to be passed to parseHeight function test case [d20f670] Allow negative numbers to be passed to parseHeight function fix [0816163] Allow negative numbers to be passed to parseHeight function [aa18c63] rebuild dist [601b5d5] setGridWidth api documentation udpdate [c309856] Add a parameter to setGridWidth method to allow not to propagate resizing to widgets. [ea442d1] drag between grids [50ce614] jqueryui + requirejs note [3d8a8e1] drag between grids demo [446dade] drag from sidebar/between grids [e31d50e] check if element setup before detach [67274f8] trash zone is accepting only widgets
This commit is contained in:
parent
0b944927ab
commit
0273bb66d8
8 changed files with 385 additions and 76 deletions
|
|
@ -45,7 +45,7 @@ gridstack.js API
|
|||
- [resize(el, width, height)](#resizeel-width-height)
|
||||
- [resizable(el, val)](#resizableel-val)
|
||||
- [setAnimation(doAnimate)](#setanimationdoanimate)
|
||||
- [setGridWidth(gridWidth)](#setgridwidthgridwidth)
|
||||
- [setGridWidth(gridWidth, doNotPropagate)](#setgridwidthgridwidth-donotpropagate)
|
||||
- [setStatic(staticValue)](#setstaticstaticvalue)
|
||||
- [update(el, x, y, width, height)](#updateel-x-y-width-height)
|
||||
- [willItFit(x, y, width, height, autoPosition)](#willitfitx-y-width-height-autoposition)
|
||||
|
|
@ -56,6 +56,8 @@ gridstack.js API
|
|||
|
||||
## Options
|
||||
|
||||
- `acceptWidgets` - if `true` of jquery selector the grid will accept widgets dragged from other grids or from
|
||||
outside (default: `false`) See [example](http://troolee.github.io/gridstack.js/demo/two.html)
|
||||
- `alwaysShowResizeHandle` - if `true` the resizing handles are shown even if the user is not hovering over the widget
|
||||
(default: `false`)
|
||||
- `animate` - turns animation on (default: `false`)
|
||||
|
|
@ -413,11 +415,12 @@ Toggle the grid animation state. Toggles the `grid-stack-animate` class.
|
|||
|
||||
- `doAnimate` - if `true` the grid will animate.
|
||||
|
||||
### setGridWidth(gridWidth)
|
||||
### setGridWidth(gridWidth, doNotPropagate)
|
||||
|
||||
(Experimental) Modify number of columns in the grid. Will attempt to update existing widgets to conform to new number of columns. Requires `gridstack-extra.css` or `gridstack-extra.min.css`.
|
||||
|
||||
- `gridWidth` - Integer between 1 and 12.
|
||||
- `doNotPropagate` - if true existing widgets will not be updated.
|
||||
|
||||
### setStatic(staticValue)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue