Interface IEditorScrollbarOptions
Expand description
interface IEditorScrollbarOptions {
alwaysConsumeMouseWheel?: boolean;
arrowSize?: number;
handleMouseWheel?: boolean;
horizontal?: "auto" | "visible" | "hidden";
horizontalHasArrows?: boolean;
horizontalScrollbarSize?: number;
horizontalSliderSize?: number;
ignoreHorizontalScrollbarInContentHeight?: boolean;
scrollByPage?: boolean;
useShadows?: boolean;
vertical?: "auto" | "visible" | "hidden";
verticalHasArrows?: boolean;
verticalScrollbarSize?: number;
verticalSliderSize?: number;
}Properties§
always Consume Mouse Wheel?: booleanAlways consume mouse wheel events (always call preventDefault() and stopPropagation() on the browser events).
Defaults to true.
NOTE: This option cannot be updated using updateOptions()
arrow Size?: numberThe size of arrows (if displayed).
Defaults to 11.
NOTE: This option cannot be updated using updateOptions()
handle Mouse Wheel?: booleanListen to mouse wheel events and react to them by scrolling. Defaults to true.
horizontal?: "auto" | "visible" | "hidden"Render horizontal scrollbar. Defaults to 'auto'.
horizontal Has Arrows?: booleanRender arrows at the left and right of the horizontal scrollbar.
Defaults to false.
NOTE: This option cannot be updated using updateOptions()
horizontal Scrollbar Size?: numberHeight in pixels for the horizontal scrollbar. Defaults to 12 (px).
horizontal Slider Size?: numberHeight in pixels for the horizontal slider.
Defaults to horizontalScrollbarSize.
NOTE: This option cannot be updated using updateOptions()
ignore Horizontal Scrollbar In Content Height?: booleanWhen set, the horizontal scrollbar will not increase content height. Defaults to false.
scroll By Page?: booleanScroll gutter clicks move by page vs jump to position. Defaults to false.
use Shadows?: booleanCast horizontal and vertical shadows when the content is scrolled.
Defaults to true.
NOTE: This option cannot be updated using updateOptions()
vertical?: "auto" | "visible" | "hidden"Render vertical scrollbar. Defaults to 'auto'.
vertical Has Arrows?: booleanRender arrows at the top and bottom of the vertical scrollbar.
Defaults to false.
NOTE: This option cannot be updated using updateOptions()
vertical Scrollbar Size?: numberWidth in pixels for the vertical scrollbar. Defaults to 14 (px).
vertical Slider Size?: numberWidth in pixels for the vertical slider.
Defaults to verticalScrollbarSize.
NOTE: This option cannot be updated using updateOptions()
Configuration options for editor scrollbars