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:
472472
473473**Breaking change:**
474474
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:
476476` ` ` ts
477477// 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 ) {
479479 el .innerHTML = w .content ;
480480};
481481` ` `
@@ -485,7 +485,7 @@ GridStack.renderCB = function(el, w) {
485485**Potential breaking change:**
486486
487487* 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.
4894892. use any class/structure you want for side panel items (see two.html)
4904903. ` GridStack .setupDragIn ()` now support associating a ` GridStackWidget` for each sidepanel that will be used to define what to create on drop!
4914914. if no ` GridStackWidget` is defined, the helper will now be inserted as is, and NOT original sidepanel item.
You can’t perform that action at this time.
0 commit comments