Stay organized with collections Save and categorize content based on your preferences.

blockly > ScrollbarPair > (constructor)

ScrollbarPair.(constructor)

Constructs a new instance of the ScrollbarPair class

Signature:

constructor(workspace: WorkspaceSvg, addHorizontal?: boolean, addVertical?: boolean, opt_class?: string, opt_margin?: number);

Parameters

Parameter Type Description
workspace WorkspaceSvg Workspace to bind the scrollbars to.
addHorizontal boolean (Optional) Whether to add a horizontal scrollbar. Defaults to true.
addVertical boolean (Optional) Whether to add a vertical scrollbar. Defaults to true.
opt_class string (Optional) A class to be applied to these scrollbars.
opt_margin number (Optional) The margin to apply to these scrollbars.