new Button(options)
A bar button
options: { element : «Element», name : «String» }
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | The options |
Methods
-
<static> create(options)
-
Creates a new bar button
options: { icon : «String», name : «String» }
Parameters:
Name Type Description options
Object The options
-
setSelected(selected)
-
Mark the button as selected
Parameters:
Name Type Description selected
Boolean If it should be marked selected