Skip to content

Trouble upgrading from v10 to v11 using migration steps provided. #3058

Closed
@yvonnewat

Description

@yvonnewat

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions