export declare abstract class UIComponent<TComponent = ComponentWithConstructor<Record<string, unknown>>, TState extends SerializableState = SerializableState> extends Component<TComponent, TState>
class Welcome extends UIComponent { initializeUI() { return Text({text: 'Welcome to my World'}); } }
panelHeight
[readonly]
|
The height of the panel, in pixels. You can't change the value after the panel is initialized.
Signature
protected readonly panelHeight: number; Remarks Default value: 500. |
panelWidth
[readonly]
|
The width of the UI panel, in pixels. You can't change the value after the panel is initialized.
Signature
protected readonly panelWidth: number; Remarks Default value: 500. |
initializeUI()
abstract
|
Defines the UI and sets up necessary event subscriptions. This method is called before the UIComponent.start() method when the component is started.
Signature
abstract initializeUI(): UINode; Returns Remarks This method must return a valid UINode. |
start() |
A default start implementation for classes that inherit from UIComponent.
Signature
start(): void; Returns void |