Skip to content

Commit 3f5d803

Browse files
authored
Merge pull request #2832 from adumesny/master
doc update
2 parents 6b2f9ac + 642b116 commit 3f5d803

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Diff for: README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,9 @@ breaking change:
468468
469469
* Side panel drag&drop complete rewrite.
470470
471-
**breaking change:**
471+
* new lazy loading option
472+
473+
**Breaking change:**
472474
473475
* if you code relies on `GridStackWidget.content` with real HTML (like a few demos) it is up to you to do this:
474476
```ts
@@ -480,6 +482,8 @@ GridStack.renderCB = function(el, w) {
480482
* V11 add new `GridStack.renderCB` that is called for you to create the widget content (entire GridStackWidget is passed so you can use id or some other field as logic) while GS creates the 2 needed parent divs + classes, unlike `GridStack.addRemoveCB` which doesn't create anything for you. Both can be handy for Angular/React/Vue frameworks.
481483
* `addWidget(w: GridStackWidget)` is now the only supported format, no more string content passing. You will need to create content yourself (`Util.createWidgetDivs()` can be used to create parent divs) then call `makeWidget(el)` instead.
482484
485+
**Potential breaking change:**
486+
483487
* BIG overall to how sidepanel helper drag&drop is done:
484488
1. `clone()` helper is now passed full HTML element dragged, not an event on `grid-stack-item-content` so can clone or set attr at the top.
485489
2. use any class/structure you want for side panel items (see two.html)

Diff for: doc/CHANGES.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ Change log
115115
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
116116

117117
## 11.0.0 (2024-10-20)
118-
* fix: [#2736](https://github.com/gridstack/gridstack.js/bug/2736) safe practices around GridStackWidget.content no longer setting innerHTML
118+
* feat: [#2826](https://github.com/gridstack/gridstack.js/pull/2826) Lazy loading of widget content until visible (`GridStackOptions.lazyLoad` and `GridStackWidget.lazyLoad`)
119+
* feat: [#2818](https://github.com/gridstack/gridstack.js/pull/2818) support for Angular Component hosting true sub-grids (that size according to parent) without requring them to be only child of grid-item-content.
119120
* fix: [#2231](https://github.com/gridstack/gridstack.js/bug/2231),[#1840](https://github.com/gridstack/gridstack.js/bug/1840),[#2354](https://github.com/gridstack/gridstack.js/bug/2354)
120121
big overall to how we do sidepanel drag&drop helper. see release notes.
121-
* feat: [#2818](https://github.com/gridstack/gridstack.js/pull/2818) support for Angular Component hosting true sub-grids (that size according to parent) without requring them to be only child of grid-item-content.
122-
* feat: [#2826](https://github.com/gridstack/gridstack.js/pull/2826) Lazy loading of widget content until visible (`GridStackOptions.lazyLoad` and `GridStackWidget.lazyLoad`)
122+
* fix: [#2736](https://github.com/gridstack/gridstack.js/bug/2736) safe practices around GridStackWidget.content no longer setting innerHTML
123123

124124
## 10.3.1 (2024-07-21)
125125
* fix: [#2734](https://github.com/gridstack/gridstack.js/bug/2734) rotate() JS error

0 commit comments

Comments
 (0)