Skip to main content

Home > 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

ParameterTypeDescription
workspaceWorkspaceSvgWorkspace to bind the scrollbars to.
addHorizontalboolean(Optional) Whether to add a horizontal scrollbar. Defaults to true.
addVerticalboolean(Optional) Whether to add a vertical scrollbar. Defaults to true.
opt_classstring(Optional) A class to be applied to these scrollbars.
opt_marginnumber(Optional) The margin to apply to these scrollbars.