ReferenceAnnotationToolbarItem
Type Alias AnnotationToolbarItem
Type Alias
Type Signature
type AnnotationToolbarItem =
| {
className?: string;
disabled?: boolean;
icon?: string;
iconClassName?: string;
id?: string;
onIconPress?: (event: MouseEvent, id?: string) => void;
onPress?: (event: KeyboardEvent | MouseEvent, id?: string) => void;
title?: string;
type:
| "opacity"
| "measurementScale"
| "color"
| "font"
| "back"
| "close"
| "delete"
| "linecaps-dasharray"
| "spacer"
| "stroke-color"
| "fill-color"
| "background-color"
| "line-width"
| "blend-mode"
| "annotation-note"
| "border-color"
| "border-width"
| "border-style"
| "line-style"
| "overlay-text"
| "outline-color"
| "apply-redactions"
| "measurementType"
| "crop-current"
| "crop-all"
| "clockwise-rotation"
| "counterclockwise-rotation";
}
| {
className?: string;
disabled?: boolean;
icon?: string
| Node;
iconClassName?: string;
id: string;
node?: Node;
onIconPress?: (event: MouseEvent, id?: string) => void;
onPress?: (event: KeyboardEvent | MouseEvent, id?: string) => void;
title?: string;
type: "custom";
}
| {
className?: string;
disabled?: boolean;
icon?: string;
iconClassName?: string;
id?: string;
onIconPress?: (event: MouseEvent, id?: string) => void;
onPress?: (event: KeyboardEvent | MouseEvent, id?: string) => void;
title?: string;
type:
| "opacity"
| "measurementScale"
| "color"
| "font"
| "back"
| "close"
| "delete"
| "linecaps-dasharray"
| "spacer"
| "stroke-color"
| "fill-color"
| "background-color"
| "line-width"
| "blend-mode"
| "annotation-note"
| "border-color"
| "border-width"
| "border-style"
| "line-style"
| "overlay-text"
| "outline-color"
| "apply-redactions"
| "measurementType"
| "crop-current"
| "crop-all"
| "clockwise-rotation"
| "counterclockwise-rotation";
}
| {
className?: string;
disabled?: boolean;
icon?: string
| Node;
iconClassName?: string;
id: string;
node?: Node;
onIconPress?: (event: MouseEvent, id?: string) => void;
onPress?: (event: KeyboardEvent | MouseEvent, id?: string) => void;
title?: string;
type: "custom";
}
Describes the properties of a Annotation Toolbar Item.
Check out our guides for more examples.