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 optionsObject The options
-
setSelected(selected)
-
Mark the button as selected
Parameters:
Name Type Description selectedBoolean If it should be marked selected