Appearance
wpda.button(label, callback)
Use wpda.button to add a button using your app style.
Scope: GLOBAL
Parameters
| Parameter | Type | Description |
|---|---|---|
| label | string | Button label. |
| callback | function | Your JavaScript function. |
Return Value
None
✨ Example
js
wpda.button(
"My Bytton",
(() => wpda.alert("My Alert", "Message from alert"))
)Output

