VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.UI.Panels Namespace / WebUiTextSearchPanelJS type / set_CreatePageResultHeaderContentCallback Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
set_CreatePageResultHeaderContentCallback Method
In This Topic
Sets a function, which returns UI elements for the header of text search results on image page.
Syntax
var instance = new Vintasoft.Imaging.UI.Panels.WebUiTextSearchPanelJS(settings, stateButton);

var returnValue; // Type: any

// Parameters
var value; // Type: function

returnValue = instance.set_CreatePageResultHeaderContentCallback(value);

Parameters

value
A function, which returns UI elements for the header of text search results on image page, OR "null".
Here is function prototype "function __createSearchResultHeaderContent(image, imageIndex, searchResults)", where "image" - WebImageJS object, "imageIndex" - zero-based index of "image" in image viewer collection, "searchResults" - array of search results. Important: "__createSearchResultHeaderContent" function must return not empty array of WebUiElementJS objects.
Exceptions
ExceptionDescription
Thrown if argument has wrong type.
Remarks

If property value is "null", the header of text search results contains label "Page {imageIndex}", where imageIndex - index of image in image viewer collection.

Browser Compatibility
56+
45+
11
See Also