update README.md with new functions
This commit is contained in:
parent
47ec386138
commit
7c688cfe53
1 changed files with 15 additions and 1 deletions
16
README.md
16
README.md
|
|
@ -119,6 +119,10 @@ Parameters:
|
|||
|
||||
- `el` - widget to remove
|
||||
|
||||
### remove_all()
|
||||
|
||||
Removes all widgets from the grid.
|
||||
|
||||
### resize(el, width, \[height\])
|
||||
|
||||
Changes widget size
|
||||
|
|
@ -149,7 +153,17 @@ Enables/Disables resizing.
|
|||
Enables/Disables moving.
|
||||
|
||||
- `el` - widget to modify
|
||||
- `val` - if `true` widget will be draggable.
|
||||
- `val` - if `true` widget will be draggable.
|
||||
|
||||
## Utils
|
||||
|
||||
### GridStackUI.Utils.sort(nodes, \[dir\], \[width\])
|
||||
|
||||
Sorts array of nodes
|
||||
|
||||
- `nodes` - array to sort
|
||||
- `dir` - `1` for asc, `-1` for desc
|
||||
- `width` - width of the grid. If it is `undefined` it will be calculated automatically.
|
||||
|
||||
## Use with knockout.js
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue