Skip to main content

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.

Methods

Destroy item and release all resources & event handlers.

Initialize item.

Constructor

Create new instance of the ControlBarItem
new ControlBarItem(options: ControlBarItemOptions): ControlBarItem

Parameters

Options

Properties

element

>=4.0.0
abstract
element

HTMLElement

Element of the item.

order

>=4.0.0
order

number

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
abstract
destroy

any

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
abstract
init

any

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