PrizmDoc v12.2 - March 9, 2017
Changing 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.

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback