import {CustomElementBuilder} from 'custom-elements-builder/lib/builder/CustomElementBuilder.js'
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 |
|
Method Summary
Public Methods | ||
public |
augment(builders: ...Builder): CustomElementBuilder To apply the given builders during the build process. |
|
public |
extends(value: string): CustomElementBuilder To extend a native element. |
|
public |
To register call back on events. |
|
public |
proto(value: Object): CustomElementBuilder To override the default prototype. |
|
public |
To register the custom element. |
Public Constructors
public constructor source
Public Members
Public Methods
public augment(builders: ...Builder): CustomElementBuilder source
To apply the given builders during the build process.
Params:
Name | Type | Attribute | Description |
builders | ...Builder | the builders |
public extends(value: string): CustomElementBuilder source
To extend a native element.
Params:
Name | Type | Attribute | Description |
value | string |
|
the name of the element |
public on(event: string): Object source
To register call back on events.
Params:
Name | Type | Attribute | Description |
event | string |
|
the event name |
public proto(value: Object): CustomElementBuilder source
To override the default prototype.
Params:
Name | Type | Attribute | Description |
value | Object |
|
the prototype |