Constructor
new Button(parentElem, func, id, text, icon, rightOf)
Parameters:
Name | Type | Description |
---|---|---|
parentElem |
Object | The parent Node. The button will be append to this node |
func |
function | On click on the button, this function will be triggered |
id |
string | The id of the button |
text |
string | The name of the button (displayed when the mouse is over the button) |
icon |
string | The path of the image displayed in the button |
rightOf |
Button | The button will be dispplayed to right of this element |
- Source:
Methods
createBasicButton()
Set all element for a basic button
- Source:
createChildButton()
Create others button that are not mainButton.
Call createBasicButton.
- Source:
createMenuButton()
Create main Button (recording button).
Call createBasicButton.
- Source:
getWidth()
Return width of the button
- Source:
hide()
Hide the button
- Source:
show()
Set the button to visible
- Source: