UNPKG

bona

Version:

Super lightweight microframework focused on static websites and landing pages.

33 lines (23 loc) 614 B
import Base from '../base'; export default class Component extends Base { /** * @param {Core} app Application instance. * @param {HTMLElement} el Element. * @param {object} options Options passed to instance. */ constructor(app, el, options) { super(); this.app = app; this.el = el; this.options = options; this._namespace = null; this._executors = {}; } async onInit() {} async onRefresh() {} async onEnter() {} async onComplete() {} async onLeave() {} async onDestroy() {} async onLoaded() {} }