You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello the JSDoc (and README.md) for load does not match the actual implementation:
/**
* load the widgets from a list. This will call update() on each (matching by id) or add/remove widgets that are not there.
*
* @param layout list of widgets definition to update/create
* @param addAndRemove boolean (default true) or callback method can be passed to control if and how missing widgets can be added/removed, giving
* the user control of insertion.
*
* @example
* see http://gridstackjs.com/demo/serialization.html
*/
load(items: GridStackWidget[], addRemove?: boolean | AddRemoveFcn): GridStack;
The params are items (not layout) and addRemove (not addAndRemove).
Hello the JSDoc (and README.md) for
load
does not match the actual implementation:The params are
items
(notlayout
) andaddRemove
(notaddAndRemove
).See:
gridstack.js/src/gridstack.ts
Line 689 in add2a8b
gridstack.js/doc/README.md
Line 499 in add2a8b
The text was updated successfully, but these errors were encountered: