GridStack Angular Library - v12.3.3
    Preparing search index...

    Angular component wrapper for individual GridStack items.

    This component represents a single grid item and handles:

    • Dynamic content creation and management
    • Integration with parent GridStack component
    • Component lifecycle and cleanup
    • Widget options and configuration

    Use in combination with GridstackComponent for the parent grid.

    <gridstack>
    <gridstack-item [options]="{x: 0, y: 0, w: 2, h: 1}">
    <my-widget-component></my-widget-component>
    </gridstack-item>
    </gridstack>

    Implements

    • OnDestroy
    Index

    Accessors

    Constructors

    Methods

    Properties

    container?: ViewContainerRef

    Container for dynamic component creation within this grid item. Used to append child components programmatically.

    ref: undefined | ComponentRef<GridstackItemComponent>

    Component reference for dynamic component removal. Used internally when this component is created dynamically.

    childWidget: undefined | BaseWidget

    Reference to child widget component for serialization. Used to save/restore additional data along with grid position.

    _options?: GridStackNode
    elementRef: ElementRef<GridItemCompHTMLElement>