Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c688cf

Browse files
committed
update README.md with new functions
1 parent 47ec386 commit 7c688cf

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ Parameters:
119119

120120
- `el` - widget to remove
121121

122+
### remove_all()
123+
124+
Removes all widgets from the grid.
125+
122126
### resize(el, width, \[height\])
123127

124128
Changes widget size
@@ -149,7 +153,17 @@ Enables/Disables resizing.
149153
Enables/Disables moving.
150154

151155
- `el` - widget to modify
152-
- `val` - if `true` widget will be draggable.
156+
- `val` - if `true` widget will be draggable.
157+
158+
## Utils
159+
160+
### GridStackUI.Utils.sort(nodes, \[dir\], \[width\])
161+
162+
Sorts array of nodes
163+
164+
- `nodes` - array to sort
165+
- `dir` - `1` for asc, `-1` for desc
166+
- `width` - width of the grid. If it is `undefined` it will be calculated automatically.
153167

154168
## Use with knockout.js
155169

0 commit comments

Comments
 (0)