Home Identifier Source Repository
public class | source

DelegateBuilder

Extends:

Builder → DelegateBuilder

The delegate builder. Its goal is to provide a way to delegate methods, properties and attributes.

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

To force the delegation to an attribute.

public

build(proto: *, on: *)

public

To force the delegation to a method.

public

To force the delegation to a property.

public

to(selector: string): DelegateBuilder

The target of the delegate.

Inherited Summary

From class Builder
public

build(proto: CustomElementBuilder.context.proto, on: on)

To specify the logic of the builder.

Public Constructors

public constructor(fieldBuilder: PropertyBuilder | AttributeBuilder | MethodBuilder) source

Params:

NameTypeAttributeDescription
fieldBuilder PropertyBuilder | AttributeBuilder | MethodBuilder
  • nullable: false

the field builder

Public Methods

public attribute(attrName: string): DelegateBuilder source

To force the delegation to an attribute.

Params:

NameTypeAttributeDescription
attrName string
  • optional

the name of the attribute

Return:

DelegateBuilder

the builder

public build(proto: *, on: *) source

Override:

Builder#build

Params:

NameTypeAttributeDescription
proto *
on *

public method(methName: string): DelegateBuilder source

To force the delegation to a method.

Params:

NameTypeAttributeDescription
methName string
  • optional

the name of the method

Return:

DelegateBuilder

the builder

public property(propName: string): DelegateBuilder source

To force the delegation to a property.

Params:

NameTypeAttributeDescription
propName string
  • optional

the name of the property

Return:

DelegateBuilder

the builder

public to(selector: string): DelegateBuilder source

The target of the delegate.

Params:

NameTypeAttributeDescription
selector string
  • nullable: false

a valid css query

Return:

DelegateBuilder

the builder