Closed
Description
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);