ControlBarItem
Since version 4.0.0
Interface of the ControlBar items
abstract class ControlBarItem
Properties
Element of the item.
Order within the same position.
The lowest one will be shown first.
Position to display item.
Constructor
Create new instance of the ControlBarItem
new ControlBarItem(options: ControlBarItemOptions): ControlBarItem
Parameters
options
Options
Properties
element
>=4.0.0
abstractelementHTMLElement
Element of the item.
order
>=4.0.0
ordernumber
Order within the same position.
The lowest one will be shown first.
position
>=4.0.0
position"top-left" | "top-right" | "main-top" | "main-bottom" | "main-left" | "main-right"
Position to display item.
Methods
destroy
>=4.0.0
abstractdestroyany
destroy(viewer: View360, controlBar: ControlBar): any
Destroy item and release all resources & event handlers.
Parameters
viewer
A instance of viewer to detach item
controlBar
A instance of control bar to detach item
init
>=4.0.0
abstractinitany
init(viewer: View360, controlBar: ControlBar): any
Initialize item.
Parameters
viewer
A instance of viewer to attach item
controlBar
A instance of control bar to attach item