Web Components
Docs HomeProduct SiteSupport
  • Introduction
  • Installation
  • Web Component
  • Templates
  • Binding Attributes
  • Objects
  • Imports
  • Two-Way Binding
  • Arrays
  • Formatters
  • Lifecycle Events
  • Wire Components
  • wrAttributes
Powered by GitBook
On this page

Web Component

PreviousInstallationNextTemplates

Last updated 1 year ago

All WireBootstrap web components extend the wire.ui.WebComponent class.

Register the class using the giving it a name as the first parameter.

class MyComponent extends wire.ui.WebComponent {

}
customElements.define('my-component', MyComponent);

Use the element name to reference the web component on pages.

<my-component></my-component>
define method on the standard CustomElementRegistry interface