8000 Merge pull request #2952 from adumesny/master · gridstack/gridstack.js@61646c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 61646c9

Browse files
authored
Merge pull request #2952 from adumesny/master
readme update
2 parents c7a7767 + 300408a commit 61646c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
489489
2. use any class/structure you want for side panel items (see two.html)
490490
3. `GridStack.setupDragIn()` now support associating a `GridStackWidget` for each sidepanel that will be used to define what to create on drop!
491491
4. if no `GridStackWidget` is defined, the helper will now be inserted as is, and NOT original sidepanel item.

0 commit comments

Comments
 (0)
290E
0