Hosanna UI API v1.30.2-next
    Preparing search index...

    Interface IRenderable

    Interface for objects that can be rendered in the UI.

    interface IRenderable {
        boundView: undefined | IHosannaView<ViewState>;
        div: undefined | HTMLDivElement;
        mount(): void;
        render(): void;
        showDebugBounds(show: boolean): void;
        unmount(): void;
    }
    Index

    Properties

    boundView: undefined | IHosannaView<ViewState>

    The view instance bound to this renderable.

    div: undefined | HTMLDivElement

    The root HTML div element for this renderable, if any.

    Methods

    • Mounts the renderable to the DOM or parent node.

      Returns void

    • Renders the current state of the renderable.

      Returns void

    • Shows or hides debug bounds for this renderable.

      Parameters

      • show: boolean

        Whether to show debug bounds.

      Returns void

    • Unmounts the renderable from the DOM or parent node.

      Returns void