-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Subject of the issue
Setup gridstack with a subgrid and items. Render a component in the items of subgrid doesn't seems to be possible.
It only render a component inside a subgrid instead of in a item of the subgrid.
Your environment
gridstack v7.2.3 dev, with Angular
Expected behavior
Should be a way to render a component inside a item.
Using:
private _addRemoveCB(g: GridStack, w: GridStackWidget, add: boolean): HTMLElement | undefined {
if (add) {
if (!this.container) return;
// create the grid item dynamically - see https://angular.io/docs/ts/latest/cookbook/dynamic-component-loader.html
const gridItem = this.container.createComponent(GridstackItemComponent)?.instance;
return gridItem?.el;
}
// if (this.outsideAddRemove) this.outsideAddRemove(g, w, add); // TODO: ?
return;
}
Hope someone can help me with this.
Cheers.
Ringo.