VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.UI.UIElements Namespace / WebUiElementStateJS type / WebUiElementStateJS Constructors / WebUiElementStateJS Constructor(string,object)
Syntax BrowserCompatibility SeeAlso
In This Topic
WebUiElementStateJS Constructor(string,object)
In This Topic
Initializes a new instance of the WebUiElementStateJS class.
Syntax
// Parameters
var name; // Type: string
var settings; // Type: object

var instance = new Vintasoft.Imaging.UI.UIElements.WebUiElementStateJS(name, settings);

Parameters

name
Name of UI element state.
settings
The settings of UI element. The settings parameter has the following properties:
  • cssClass (string): CSS class or classes, which will be applied to the UI element when state become active. Optional parameter. Example: "cssClass:'visited'".
  • title (string): Title, which will be applied to the UI element when state become active. Optional parameter. Example: "title:'Visited element'".
  • callback (object): A function, which will be called when state become active.
    Here is function prototype "function __callback(UIElement)", where "UIElement" parameter is an instance of WebUiElementJS type.
    Optional parameter. Example: "callback: function(uiElement){ uiElement.set_IsEnabled(false) }".
Browser Compatibility
56+
45+
11
See Also