Skip to content
On this page

Methods

You can define regular methods on the component to extend its functionality.

Example

js
import Minze, { MinzeElement } from 'minze'

class MyElement extends MinzeElement {
  myMethod() {
    console.log('Hello Minze!')
  }

  onReady() {
    this.myMethod()
  }
}

Minze.defineAll([MyElement])
html
<my-element></my-element>

Released under the MIT License.