Home Identifier Source Repository
public class | source

CustomElementBuilder

The custom element builder. Its goal is to provide a user friendly way to do it by some else (i.e. dedicated builders).

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

the context of the builder

Method Summary

Public Methods
public

To apply the given builders during the build process.

public

To extend a native element.

public

on(event: string): Object

To register call back on events.

public

To override the default prototype.

public

To register the custom element.

Public Constructors

public constructor source

Public Members

public context: Object source

the context of the builder

Properties:

NameTypeAttributeDescription
proto Object
  • nullable: false

the prototype

extends string
  • nullable: false

the name of a native element

Public Methods

public augment(builders: ...Builder): CustomElementBuilder source

To apply the given builders during the build process.

Params:

NameTypeAttributeDescription
builders ...Builder

the builders

Return:

CustomElementBuilder

the builder

public extends(value: string): CustomElementBuilder source

To extend a native element.

Params:

NameTypeAttributeDescription
value string
  • nullable: false

the name of the element

Return:

CustomElementBuilder

the builder

public on(event: string): Object source

To register call back on events.

Params:

NameTypeAttributeDescription
event string
  • nullable: false

the event name

Return:

Object

the on builder.

Return Properties:

NameTypeAttributeDescription
invoke function(callback: function)

to register the callback

public proto(value: Object): CustomElementBuilder source

To override the default prototype.

Params:

NameTypeAttributeDescription
value Object
  • nullable: false

the prototype

Return:

CustomElementBuilder

the builder

public register(name: string): Element source

To register the custom element.

Params:

NameTypeAttributeDescription
name string
  • nullable: false

the name of the cutsom element

Return:

Element

the custom element Type