Skip to content

WebComponentDefinitionOptions

Defined in: web-components-integration/src/WebComponent.ts:40

Definition options that should be used by concrete web components. Components must provide default values if necessary.

optional noRedefinitionError: boolean

Defined in: web-components-integration/src/WebComponent.ts:33

Whether to ignore an error that is thrown when an element is defined second time under a different tag.

This option is intended for when a web component uses another web component which may not be defined before its construction.

false

BasicWebComponentDefinitionOptions.noRedefinitionError


optional registry: CustomElementRegistry

Defined in: web-components-integration/src/WebComponent.ts:23

Where to define given element

customElements

BasicWebComponentDefinitionOptions.registry


optional tag: string

Defined in: web-components-integration/src/WebComponent.ts:16

Custom element tag name

BasicWebComponentDefinitionOptions.tag