import { shortcut, Widget } from "@/core"; @shortcut() export class JokerIcon extends Widget { static xtype = "demo.joker.icon"; render() { const self = this; return { type: "bi.label", cls: "anim-rotate", ref (ref) { self.text = ref; }, }; } loading() { this.text.setText("🤡"); } loaded() { this.text.setText(""); } }