Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttributeDelegateBuilder

The AttributeDelegateBuilder delegates the access of an attribute to an embedded element.

Hierarchy

  • AttributeDelegateBuilder

Implements

Index

Constructors

constructor

Properties

Private Readonly builder

Private isShadow

isShadow: boolean

Private Optional selector

selector: string

Private Optional toAttrName

toAttrName: string

Private Optional toPropName

toPropName: string

Methods

attribute

  • attribute(toAttrName: string): this
  • Delegate to an attribute.

    Parameters

    • toAttrName: string

      the attribute name.

    Returns this

build

Private delegateValue

  • delegateValue(el: HTMLElement, newVal: any): void
  • Parameters

    • el: HTMLElement
    • newVal: any

    Returns void

property

  • property(toPropName: string): this
  • Delegate to property.

    Parameters

    • toPropName: string

      the property name.

    Returns this

shadow

  • shadow(): this
  • By default, the selection of the element is done in the light DOM. This option forces the selection into the shadow DOM.

    Returns this

to

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

    Parameters

    • selector: string

      the selector

    Returns this

Static delegate

  • Class decorator used to define an attribute delegator.

    Type parameters

    • T: HTMLElement

    Parameters

    Returns (Anonymous function)

Static get

Generated using TypeDoc