Class ScriptSetFocusEvent
Attaches a client side script to set focus or select the text of the element suplied as Focus target
Inherited Members
Namespace: EPiServer.ClientScript.WebControls
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class ScriptSetFocusEvent : ScriptEventBase
Constructors
ScriptSetFocusEvent()
Declaration
public ScriptSetFocusEvent()
Properties
FocusControlID
Gets or sets the id of the element to give focus.
Declaration
public string FocusControlID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The id of the control to focus |
SetFocus
Gets or sets a value indicating whether to give the focus target element focus.
Declaration
public bool SetFocus { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SetSelect
Gets or sets a value indicating whether to select the text of the focus target element.
Declaration
public bool SetSelect { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
CreateEvent()
Create an instance of the event this web control represents.
Declaration
protected override EventBase CreateEvent()
Returns
Type | Description |
---|---|
EventBase | An EventBase derived event instance. |