Button options
Optional
childControls: Control | Control[]Optional child controls click The event fired when the button is clicked
Protected
buttonThe HTML element of the button *
Protected
childThe child controls
Protected
iconThe icons css class name *
Protected
unicodeThe unicode for the font icon *
Protected
getStatic
Protected
getStatic
Protected
getGenerated using TypeDoc
Base class for buttons
Use the Button class as base class or create a fully configurable instance directly.
A button is an OpenLayer control with a default layout. You can change some style classes, tooltips etc. with the ButtonOptions
Some buttons extend OpenLayer controls with its features, but most of them are just a shell for further implementations
You can set the icon font of the button with the unicode number or the iconClassName option.
A Button dispatches the CLICK event so that you can listen to it with the on OpenLayer method Example:
Alternatively you can override the handleEvent method
Remark
As a button is also a CompositeControl it can have child controls. E.g. it's used with the ToggleButton