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;
}