GridStack Vue Library - v13.0.0
    Preparing search index...

    Class BaseWidgetAbstract

    Optional abstract base for widget components that participate in grid.save() / grid.load().

    For Composition API widgets, prefer useWidgetSerializer() instead. This class is provided for parity with the Angular wrapper and for Options API users.

    export default defineComponent({
    extends: BaseWidget,
    setup(_, { expose }) {
    const count = ref(0)
    expose({
    serialize: () => ({ count: count.value }),
    deserialize: (w) => { count.value = w.props?.count as number ?? 0 },
    })
    },
    })
    Index

    Constructors

    Methods

    Properties

    Constructors

    Methods

    Properties

    widgetItem?: GridStackWidget