Stay organized with collections
Save and categorize content based on your preferences.
blockly > 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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `ScrollbarPair` constructor creates and manages horizontal and vertical scrollbars for a Blockly workspace."],["It takes the workspace, optional flags for adding scrollbars, an optional class name, and an optional margin as parameters."],["By default, both horizontal and vertical scrollbars are added unless specified otherwise."]]],[]]