Skip to main content

RecordScrollbar

The RecordScrollbar element tool renders a scrollbar thumb on a standard.Record shape. The scrollbar is not visible if the record's size is large enough to show all items.

See usage of the RecordScrollbar element tool in the learn section.

constructor​

constructor(opt: RecordScrollbar.Options);

The elementTools.RecordScrollbar constructor accepts an Options object that encapsulates multiple parameters:

width​

[optional] The width of the scrollbar thumb. The default value is 8.

margin​

[optional] A gap between the scrollbar thumb and sides of the record's content. The default value is 2.

rightAlign​

[optional] Determines whether the scrollbar should be shown on the right side of the record's content. It is aligned to the left by default.

Types​

Options​

interface Options extends dia.ToolView.Options {
margin?: number;
width?: number;
rightAlign?: boolean;
}

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub