PrizmDoc v13.0 - Updated
Change Annotation Default Values
Developer Guide > PrizmDoc Viewer > How to Customize the Viewer > Work with Annotations > Change Annotation Default Values

Changing Annotation Default Values

You can customize the default behavior of an annotation by modifying the button markup located in viewerTemplate.html.

In this example the mouse tool will draw a green line and will not open the context menu:

Example
Copy Code
<button data-pcc-mouse-tool="AccusoftLineAnnotation"
    data-pcc-default-fill-color="#ff0000"   
    data-pcc-context-menu="false"></button>

 

Default Data Attributes

These are the current data attributes that are being used to set defaults:

Attribute

Value Type

Description

data-pcc-default-fill-color

String

The default fill color for the annotation. This must be a hexadecimal string of 6 characters preceded by a #.

data-pcc-context-menu

Boolean

Whether or not to show the context menu when the annotation is drawn. Default is true.