I am developing a dashboard in Angular with the help of the Gridstack.js, it seemed great to me, I am loading my components in the following way
GridstackComponent.addComponentToSelectorType([Test1Component, Test2Component]);
and then I call them like this
gridOptionsFull: NgGridStackOptions = {
...this.gridOptions,
children: [
{ x: 0, y: 1, w: 8, h: 1, minW: 2, selector: 'app-test1', id: '1', autoPosition: true },
{ x: 1, y: 0, selector: 'app-test2', id: '2', autoPosition: true },
]
}
They load perfectly, but now I would like to manually add a new component, I see that the library has a method called addWidget but it does not receive an NgGridStackWidget
I would like to know if anyone has had the same problem and how I could solve it?