-
Notifications
You must be signed in to change notification settings - Fork 1
UIPrompt
jay19240 edited this page Dec 18, 2024
·
3 revisions
A UI widget displaying prompt with a text content and a menu of actions. It emit 'E_ITEM_SELECTED' with data { id, index }
- inherit from: UIWidget
- new UIPrompt(): UIPrompt
-
addAction(id: string, text: string): void
- id: The unique identifier.
- text: The text or label.
- clearActions(): void
- delete(): void
- focus(): void
-
removeAction(id: string): void
- id: The unique identifier.
-
setText(text: string): void
- text: The text content.
- unfocus(): void
-
update(ts: number): void
- ts: The timestep.