hosanna-ui-docs - v0.9.0
    Preparing search index...

    Interface IViewManager

    Interface for managing views, their state, layout, and error tracking.

    interface IViewManager {
        _tick(): void;
        clearViewsWithErrors(): void;
        getViewsWithErrors(): BaseView.BaseView<ViewState, ISGNGroup>[];
        invalidateViewLayout(view: IHosannaView<ViewState>): void;
        invalidateViewState(view: IHosannaView<ViewState>): void;
        registerControlWithError(errorObj: IDebugErrorObject, view?: any): void;
        unregisterControlWithError(view: any): void;
    }

    Implemented by

    Index

    Methods

    • Invalidates the layout of the specified view, causing it to be recalculated.

      Parameters

      • view: IHosannaView<ViewState>

        The view whose layout should be invalidated.

      Returns void

    • Invalidates the state of the specified view, causing it to be re-rendered or updated.

      Parameters

      • view: IHosannaView<ViewState>

        The view whose state should be invalidated.

      Returns void

    • Registers a control (view) with an error for debugging purposes.

      Parameters

      • errorObj: IDebugErrorObject

        The error object containing debug information.

      • Optionalview: any

        The view associated with the error.

      Returns void