Class Switch
Inheritance
System.Object
Switch
Assembly: Syncfusion.EJ2.dll
public class Switch : EJTagHelper
Constructors
Declaration
Properties
Triggers when Switch state has been changed by user interaction.
Declaration
public string Change { get; set; }
Property Value
Type |
Description |
System.String |
|
Specifies a value that indicates whether the Switch is checked
or not.
When set to true
, the Switch will be in checked
state.
Declaration
public bool Checked { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
protected override string ClassName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Triggers once the component rendering is completed.
Declaration
public string Created { get; set; }
Property Value
Type |
Description |
System.String |
|
You can add custom styles to the Switch by using this property.
Declaration
public string CssClass { get; set; }
Property Value
Type |
Description |
System.String |
|
Specifies a value that indicates whether the Switch is disabled
or not.
When set to true
, the Switch will be in disabled
state.
Declaration
public bool Disabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Enable or disable persisting component's state between page reloads.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Enable or disable rendering component in right to left direction.
Declaration
public bool EnableRtl { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public override ModelExpression For { get; set; }
Property Value
Type |
Description |
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression |
|
Overrides
Allows additional HTML attributes such as title, name, etc., and
accepts n number of attributes in a key-value pair format.
Declaration
public object HtmlAttributes { get; set; }
Property Value
Type |
Description |
System.Object |
|
Declaration
protected override bool IsFor { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public string Locale { get; set; }
Property Value
Type |
Description |
System.String |
|
Defines name
attribute for the Switch.
It is used to reference form data (Switch value) after a form is submitted.
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
protected override string NameSpace { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Specifies a text that indicates the Switch is in unchecked state.
Declaration
public string OffLabel { get; set; }
Property Value
Type |
Description |
System.String |
|
Specifies a text that indicates the Switch is in checked state.
Declaration
public string OnLabel { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
protected override string TagName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Defines value
attribute for the Switch.
It is a form data passed to the server when submitting the form.
Declaration
public string Value { get; set; }
Property Value
Type |
Description |
System.String |
|