PrizmDoc® Viewer v14.0 Release - Updated
PrizmDoc Viewer / 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. NOTE: Refer to the Customizing the Viewer section for details on using the viewerTemplate.html.

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

    Example

    <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.