Skip to main content

Usage

class MyCustomElement extends window.BAO.CustomElement() {
...
}

Elements

Why?

this.els

When to use?

this.externalEls

When to use?

Listeners

When to use?

Validation

Why?

Bundled validations:

  • requiredElements
  • requiredExternalElements
  • requiredAttributes

Styles

Why?

Render sections

Should this be extracted? Feels like it shouldn't really relate to the custom elements

Debug

this.log

Why?

Good examples from other projects

Would be good to write almost like little case studies on why this custom element on this project is good