VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI.Panels Namespace / WebUiAnnotationListPanelJS type / set_CreateAnnotationContentCallback Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    set_CreateAnnotationContentCallback Method
    In This Topic
    Sets a function, which returns UI elements for the annotation list record.
    Syntax
    var instance = new Vintasoft.Imaging.Annotation.UI.Panels.WebUiAnnotationListPanelJS(settings, stateButton);
    
    var returnValue; // Type: any
    
    // Parameters
    var value; // Type: function
    
    returnValue = instance.set_CreateAnnotationContentCallback(value);
    
    
    function set_CreateAnnotationContentCallback(
    value
    A function, which returns UI elements for the annotation list record, OR "null".
    Here is function prototype "function __createAnnotationContent(annotation, annotationCollection)", where "annotation" parameter is an instance of WebAnnotationViewJS type, "annotationCollection" parameter is an instance of WebAnnotationViewCollectionJS type. Important: "__createAnnotationContent" function must return not empty array of WebUiElementJS objects.
    : Function
    ) : any;

    Parameters

    value
    A function, which returns UI elements for the annotation list record, OR "null".
    Here is function prototype "function __createAnnotationContent(annotation, annotationCollection)", where "annotation" parameter is an instance of WebAnnotationViewJS type, "annotationCollection" parameter is an instance of WebAnnotationViewCollectionJS type. Important: "__createAnnotationContent" function must return not empty array of WebUiElementJS objects.
    Exceptions
    ExceptionDescription
    Thrown if argument has wrong type.
    Remarks

    If property value is "null", the annotation list record contains label with annotation type.

    Browser Compatibility
    56+
    45+
    11
    See Also