Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ReferenceBuilder

Reference builder provides services to bind a property to a embedded DOM element.

Hierarchy

  • ReferenceBuilder

Implements

Index

Constructors

constructor

  • new ReferenceBuilder(propName: string, selectors: string, isArray?: boolean, isShadow?: boolean): ReferenceBuilder
  • Parameters

    • propName: string
    • selectors: string
    • Default value isArray: boolean = false
    • Default value isShadow: boolean = false

    Returns ReferenceBuilder

Properties

Private isArray

isArray: boolean

Private isShadow

isShadow: boolean

Private propName

propName: string

Private selectors

selectors: string

Methods

array

  • array(): this
  • The property can be an array. In this case, the output is an array of matched elements.

    Returns this

build

selector

  • selector(selector: string): this
  • The CSS selector used to identify the DOM element(s).

    Parameters

    • selector: string

      the selector

    Returns this

shadow

  • shadow(): this
  • By default, the builder uses the querySelector method of the CustomElement. With this option, the builder will use the querySelector method of the attached (and opened) shadow DOM.

    Returns this

Static get

Static reference

Generated using TypeDoc