Control Components
Button
A humble but effective push button.
Wraps the Tweakpane addButton
method.
Usage outside of a <Pane>
component will implicitly wrap the button in <Pane position="inline">
.
See the <ButtonGrid>
and <RadioGrid>
components for a convenient way to lay out multiple buttons.
Count: 0
optional | |
Description | Text inside of the button. |
---|---|
Type | string |
Default | 'Button' |
optional | |
Description | Text displayed next to the button. |
---|---|
Type | string |
Default | undefined |
optional | |
Description | Prevent interactivity and gray out the control. |
---|---|
Type | boolean |
Default | false |
optional | |
Description | Custom color scheme. |
---|---|
Type | Theme |
Default | undefined Inherits default Tweakpane theme equivalent to ThemeUtils.presets.standard , or the theme set with setGlobalDefaultTheme() .) |
Description | Fires when the button is clicked. |
---|---|
Type | ButtonClickEvent |