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);
function WebUiElementStateJS(
: string,
: object
) : WebUiElementStateJS;
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
See Also