new Button(options)
A button renders a button with text to an internal canvas. The width will scale to fit the text.
Parameters:
| Name | Type | Description |
|---|---|---|
options |
possible keys include: * text - the text to display on the button * height - the height of the button |
- Source:
- visualization/models/Button.js, line 13
Methods
-
redraw()
-
Redraw the button to the internal canvas.
- Source:
- visualization/models/Button.js, line 26