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

Skip to content

Commit fc28ca5

Browse files
committed
add detach_node param to remove_widget
1 parent 94b4889 commit fc28ca5

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Inspired by [gridster.js](http://gridster.net). Built with love.
3636
- [get_cell_from_pixel(position)](#get_cell_from_pixelposition)
3737
- [is_area_empty(x, y, width, height)](#is_area_emptyx-y-width-height)
3838
- [locked(el, val)](#lockedel-val)
39-
- [remove_widget(el)](#remove_widgetel)
39+
- [remove_widget(el, detach_node)](#remove_widgetel-detach_node)
4040
- [remove_all()](#remove_all)
4141
- [resize(el, width, height)](#resizeel-width-height)
4242
- [move(el, x, y)](#moveel-x-y)
@@ -286,13 +286,14 @@ Locks/unlocks widget.
286286
- `el` - widget to modify.
287287
- `val` - if `true` widget will be locked.
288288

289-
### remove_widget(el)
289+
### remove_widget(el, detach_node)
290290

291291
Removes widget from the grid.
292292

293293
Parameters:
294294

295-
- `el` - widget to remove
295+
- `el` - widget to remove.
296+
- `detach_node` - if `false` DOM node won't be removed from the tree (Optional. Default `true`).
296297

297298
### remove_all()
298299

dist/gridstack.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)