PrizmDoc Viewer v13.23 - Updated
Developer Guide / Viewer / How to Customize the Viewer / Work with Annotations / Change Annotation Default Values
In This Topic
    Change Annotation Default Values
    In This Topic

    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:


    <button data-pcc-mouse-tool="AccusoftLineAnnotation"

    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.