Class ZCircusByAbstract

Represents a by query language to query the driver by selectors.

Constructors

Methods

Constructors

Methods

  • Returns the first discovered component model that matches the inner Selector.

    Type Parameters

    Parameters

    • driver: IZCircusDriver

      The driver to query.

    • CircusComponentModel: ZCircusComponentConstructor<T>

      The component model to construct.

    • Optionalname: string

      The optional name. If this is falsy, then the basic selector is used, otherwise the first component that matches the selector that also has a "name" or "data-name" attribute with the matching value.

    Returns Promise<T>

    A new instance of CircusComponentModel. If no target is found, then this method rejects with an Error.