← Back
Button
This will display a button. To control what happens when the button is clicked, add an onClick
property:
Input:
[var name:"myVar" value:0 /]
[button onClick:`myVar += 1`]Click Me![/button]
Variable value: [Display value:myVar /]
Output:
Props
- onClick
event
An event that is fired when the user clicks the button.
- Example:
`x += 1`
- Example: