Skip to main content

Home > blockly > Scrollbar > (constructor)

Scrollbar.(constructor)

Constructs a new instance of the Scrollbar class

Signature:

constructor(workspace: WorkspaceSvg, horizontal: boolean, opt_pair?: boolean, opt_class?: string, opt_margin?: number);

Parameters

ParameterTypeDescription
workspaceWorkspaceSvgWorkspace to bind the scrollbar to.
horizontalbooleanTrue if horizontal, false if vertical.
opt_pairboolean(Optional) True if scrollbar is part of a horiz/vert pair.
opt_classstring(Optional) A class to be applied to this scrollbar.
opt_marginnumber(Optional) The margin to apply to this scrollbar.