• Waits for a control to be rendered in the DOM and returns the rendered control.

    This function checks if the specified control is already rendered in the DOM. If the control is not rendered, it sets up a deferred check to be executed after the control is rendered. Once the control is rendered, the promise is resolved with the control.

    Parameters

    • ctrlName: string

      The name of the control to wait for.

    Returns Promise<Cbn.ctrls.Base>

    A promise that resolves with the rendered control.