UNPKG

beyond

Version:

The Full Stack Universal Typescript Framework

26 lines (22 loc) 535 B
import { PageReactWidgetController } from '@beyond-js/react-18-widgets/page'; import { View } from './views'; import { StoreManager } from './store'; export /*bundle*/ class Controller extends PageReactWidgetController { #store: StoreManager; createStore() { this.#store = new StoreManager(); return this.#store; } get Widget() { return View; } /** * this method is executed when the widget is showd */ load() {} /** * this method is executed when the widget is hidden */ hide() {} }