Nutrient Web SDK
    Preparing search index...

    Type Alias OnWidgetAnnotationCreationStartCallback

    OnWidgetAnnotationCreationStartCallback: (
        annotation: NutrientViewer.Annotations.WidgetAnnotation,
        formField: NutrientViewer.FormFields.FormField,
    ) => {
        annotation?: NutrientViewer.Annotations.WidgetAnnotation;
        formField?: NutrientViewer.FormFields.FormField;
    }

    You can programmatically modify the properties of the widget annotation and the associated form field just before it is created via the form creator UI.

    Type Declaration

    Set the opacity of all widget annotations.

    NutrientViewer.load({
    onWidgetAnnotationCreationStart: (annotation, formField) => {
    return { annotation: annotation.set('opacity', 0.7) };
    }
    // ...
    });