ToolbarConfig
Syntax
interface ToolbarConfig {
enabled?: boolean;
id?: string;
className?: string; // the className of CSS
style?: CssStyleDeclaration; // the style of the toolbar
paletteButton?: AnnotationToolbarButton;
deleteButton?: AnnotationToolbarButton;
copyButton?: AnnotationToolbarButton;
highlightButton?: AnnotationToolbarButton;
underlineButton?: AnnotationToolbarButton;
strikeoutButton?: AnnotationToolbarButton;
}
Attributes
enabled
Whether or not the toolbar is enabled.
Default value: true
id
The id of Dom Element. If it is not specified, a random string will be generated.
className
The className of CSS.
style
The style which will cover CSS.
paletteButton
The configuration of palette button in the toolbar. Please refer to AnnotationToolbarButton.
deleteButton
The configuration of delete button in the toolbar. Please refer to AnnotationToolbarButton.
copyButton
The configuration of copy button in the toolbar. Please refer to AnnotationToolbarButton.
highlightButton
The configuration of highlight button in the toolbar. Please refer to AnnotationToolbarButton.
underlineButton
The configuration of underline button in the toolbar. Please refer to AnnotationToolbarButton.
strikeoutButton
The configuration of strikeout button in the toolbar. Please refer to AnnotationToolbarButton.