Last date modified: 2026-Aug-07
Interface: IZoomControlCollection
Special IControlCollection for zoom controls
Extends
Properties
ariaLabel?
optionalariaLabel:string
Inherited from
class
class:
string
Inherited from
controls
readonlycontrols:IToolbarControl[]
Inherited from
disabled
readonlydisabled:boolean
Inherited from
id
id:
string
Inherited from
isControlCollection
readonlyisControlCollection:boolean
Inherited from
IControlCollection.isControlCollection
isFlexible
readonlyisFlexible:boolean
Inherited from
isHidden
readonlyisHidden:boolean
Inherited from
leftDivider
leftDivider:
boolean
Inherited from
IControlCollection.leftDivider
order
order:
number
Inherited from
permissionCheck?
optionalpermissionCheck:IPermissionCheckRequest|IPermissionCheckRequest[]
Inherited from
IControlCollection.permissionCheck
rightDivider
rightDivider:
boolean
Inherited from
IControlCollection.rightDivider
role?
optionalrole:string
Inherited from
scrollDimensions
scrollDimensions:
object
x
x:
number
y
y:
number
Inherited from
IControlCollection.scrollDimensions
title
title:
string
Inherited from
viewModelPath
readonlyviewModelPath: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
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
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
getControlById()
getControlById(
id):IToolbarControl
Retrieves the toolbar control with the specified identifier
Parameters
• id: string
The element identifier
Returns
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
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
On this page