File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -472,10 +472,10 @@ breaking change:
472
472
473
473
**Breaking change:**
474
474
475
- * if you code relies on ` GridStackWidget .content ` with real HTML (like a few demos) it is up to you to do this:
475
+ * if your code relies on ` GridStackWidget .content ` with real HTML (like a few demos) it is up to you to do this:
476
476
` ` ` ts
477
477
// NOTE: REAL apps would sanitize-html or DOMPurify before blinding setting innerHTML. see #2736
478
- GridStack .renderCB = function (el , w ) {
478
+ GridStack .renderCB = function (el : HTMLElement , w : GridStackNode ) {
479
479
el .innerHTML = w .content ;
480
480
};
481
481
` ` `
@@ -485,7 +485,7 @@ GridStack.renderCB = function(el, w) {
485
485
**Potential breaking change:**
486
486
487
487
* BIG overall to how sidepanel helper drag&drop is done:
488
- 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.
488
+ 1. ` clone ()` helper is now passed full HTML element dragged, not an event on ` grid- stack- item- content` so you can clone or set attr at the top.
489
489
2. use any class/structure you want for side panel items (see two.html)
490
490
3. ` GridStack .setupDragIn ()` now support associating a ` GridStackWidget` for each sidepanel that will be used to define what to create on drop!
491
491
4. if no ` GridStackWidget` is defined, the helper will now be inserted as is, and NOT original sidepanel item.
290E
You can’t perform that action at this time.
0 commit comments