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
I am having trouble implementing the migration steps provided to my code. Specifically, I cannot find a definition in the documentation for GridStack.createWidgetDivs() and the migration steps could elaborate a little more on how each of these functions will work together.
At present I am trying something similar to
let el = '<div>some block</div>`;
let widgetParams = {x: x, y: y, w: width, h: height}
let newDiv = GridStack.createWidgetDivs(widgetParams);
newDiv.innerHTML = el.content;
let gridWidget = grid.makeWidget(newDiv);
I am still getting odd behaviour from the grid elements with this and I'm not sure what about this is different from what is suggested in the migration steps. The old behaviour used addWidget like so:
let gridWidget = GridStack.addWidget(el, widgetParams);
The text was updated successfully, but these errors were encountered:
I am having trouble implementing the migration steps provided to my code. Specifically, I cannot find a definition in the documentation for
GridStack.createWidgetDivs()
and the migration steps could elaborate a little more on how each of these functions will work together.At present I am trying something similar to
I am still getting odd behaviour from the grid elements with this and I'm not sure what about this is different from what is suggested in the migration steps. The old behaviour used
addWidget
like so:The text was updated successfully, but these errors were encountered: