Interface: IZoomControlCollection
Special IControlCollection for zoom controls
Extends
Properties
class
class: string
Inherited from
IControlCollection
.class
controls
readonly
controls: IToolbarControl
[]
Inherited from
IControlCollection
.controls
disabled
readonly
disabled: boolean
Inherited from
IControlCollection
.disabled
id
id: string
Inherited from
IControlCollection
.id
isControlCollection
readonly
isControlCollection: boolean
Inherited from
IControlCollection
.isControlCollection
isFlexible
readonly
isFlexible: boolean
Inherited from
IControlCollection
.isFlexible
isHidden
readonly
isHidden: boolean
Inherited from
IControlCollection
.isHidden
leftDivider
leftDivider: boolean
Inherited from
IControlCollection
.leftDivider
order
order: number
Inherited from
IControlCollection
.order
permissionCheck?
optional
permissionCheck: IPermissionCheckRequest
| IPermissionCheckRequest
[]
Inherited from
IControlCollection
.permissionCheck
rightDivider
rightDivider: boolean
Inherited from
IControlCollection
.rightDivider
scrollDimensions: object
x
x: number
y
y: number
Inherited from
IControlCollection
.scrollDimensions
title
title: string
Inherited from
IControlCollection
.title
viewModelPath
readonly
viewModelPath: string
Inherited from
IControlCollection
.viewModelPath
Methods
addControl()
addControl(control
, position
?): void
Adds the provided control to the collection
Parameters
• control: IToolbarControl
The toolbar control to add to the collection
• position?: number
The 0 based position to insert the control at in the collection, inserted at the end if not passed
Returns
void
Inherited from
IControlCollection
.addControl
addZoomControl()
addZoomControl(control
): void
Adds a new zoom control to the control collection and saves its reference
Parameters
• control: IToolbarControl
The zoom control to add to the collection
Returns
void
disable()
disable(): void
Disables the toolbar control. This will also gets called when toolbar containing the control gets disabled.
Note: If the control needs to do additional sync/async taks (e.x checking on user permission), create
override method for disable.
Returns
void
Inherited from
IControlCollection
.disable
enable()
enable(): void
Enables the toolbar control. This will also gets called when toolbar containing the control gets enabled.
Note: If the control needs to do additional sync/async taks (e.x checking on user permission), create
override method for enable.
Returns
void
Inherited from
IControlCollection
.enable
getControlById()
getControlById(id
): IToolbarControl
Retrieves the toolbar control with the specified identifier
Parameters
• id: string
The element identifier
Returns
IToolbarControl
First toolbar control element matching $ or null if none present
Inherited from
IControlCollection
.getControlById
hide()
hide(): void
Hides the toolbar control.
Returns
void
Inherited from
IControlCollection
.hide
removeControl()
removeControl(control
): boolean
Removes the provided toolbar control from the collection
Parameters
• control: IToolbarControl
The toolbar control to remove from the collection
Returns
boolean
Whether or not item was removed
Inherited from
IControlCollection
.removeControl
removeZoomControl()
removeZoomControl(control
): void
Removes a zoom control from the control collection and its reference
Parameters
• control: IToolbarControl
The zoom control to remove from the collection
Returns
void
setZoomLevel()
setZoomLevel(zoomLevel
): void
Tracks the zoom level of the viewer and disables certain zoom controls when zoom limits are reached
Parameters
• zoomLevel: number
the current viewer zoom
Returns
void
show()
show(): void
Shows the toolbar control.
Returns
void
Inherited from
IControlCollection
.show