VintaSoft Imaging .NET SDK 15.0: Documentation for Web developer
Vintasoft.Imaging.UI.UIElements Namespace / WebUiElementsFactoryJS type / registerElement Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    registerElement Method
    In This Topic
    Registers UI element with specified ID in factory.
    Syntax
    var instance = new Vintasoft.Imaging.UI.UIElements.WebUiElementsFactoryJS();
    
    var value; // Type: any
    
    // Parameters
    var id; // Type: string
    var createFunction; // Type: function
    
    value = instance.registerElement(id, createFunction);
    
    
    function registerElement(
    id
    Element ID.
    : string,
    createFunction
    Function that create required WebUiElementJS object.
    : Function
    ) : any;

    Parameters

    id
    Element ID.
    createFunction
    Function that create required WebUiElementJS object.
    Exceptions
    ExceptionDescription
    Thrown if arguments have wrong types.
    Thrown if element ID is empty string.
    Browser Compatibility
    56+
    45+
    11
    See Also