Add scrollbar.showScrollbar

Fixes #5676
This commit is contained in:
Daniel Imms
2026-02-05 07:20:23 -08:00
parent 6f163beb97
commit c2db7d4c8a
14 changed files with 115 additions and 32 deletions
+6
View File
@@ -716,6 +716,7 @@ declare module '@xterm/xterm' {
/**
* When defined, renders decorations in the overview ruler to the right of
* the terminal. This must be set in order to see the overview ruler.
* This is ignored when {@link IScrollbarOptions.showScrollbar} is false.
* @param color The color of the decoration.
* @param position The position of the decoration.
*/
@@ -738,6 +739,11 @@ declare module '@xterm/xterm' {
* Options for configuring the scrollbar.
*/
export interface IScrollbarOptions {
/**
* Whether to show the scrollbar. When false, this supersedes
* {@link IOverviewRulerOptions.width}. Defaults to true.
*/
showScrollbar?: boolean;
/**
* Whether to show arrows at the top and bottom of the scrollbar. Defaults
* to false.