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

    The ViewManager class is responsible for managing the state and layout of views. It keeps track of dirty views and views with invalidated layouts, and processes them during each tick.

    Implements

    Index

    Constructors

    Properties

    currentView: null | BaseView.BaseView<ViewState, ISGNGroup> = null

    The view currently being processed.

    dirtyViews: BaseView.BaseView<ViewState, ISGNGroup>[] = []

    Array of views whose state is dirty and needs to be updated.

    layoutDirtyViewsById: Record<string, BaseView.BaseView<ViewState, ISGNGroup>> = {}

    Map of view IDs to views with invalidated layouts.

    layoutInvalidatedViews: BaseView.BaseView<ViewState, ISGNGroup>[] = []

    Array of views whose layout is invalid and needs to be recalculated.

    viewsWithErrors: BaseView.BaseView<ViewState, ISGNGroup>[] = []

    Set of views that currently have errors.

    Methods

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

      Parameters

      • errorObj: IDebugErrorObject

        The error object containing debug information.

      • view: null = null

        The view associated with the error. If not provided, uses the current view.

      Returns void