Class MobileToggleButtonPropertiesBuilder
Class for MobileToggleButtonPropertiesBuilder
Inheritance
Inherited Members
Namespace: Syncfusion.JavaScript.Mobile
Assembly: Syncfusion.EJ.dll
Syntax
public class MobileToggleButtonPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
MobileToggleButtonPropertiesBuilder(ToggleButton)
Initializes a new instance of the
Declaration
public MobileToggleButtonPropertiesBuilder(ToggleButton mobileToggleButton)
Parameters
| Type | Name | Description |
|---|---|---|
| ToggleButton | mobileToggleButton |
Methods
Animate(Boolean)
Specifies the transition effect for state change.
Declaration
public MobileToggleButtonPropertiesBuilder Animate(bool animate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | animate | if set to |
Returns
| Type | Description |
|---|---|
| MobileToggleButtonPropertiesBuilder |
ClientSideEvents(Action<MobileToggleButtonClientSideEventsBuilder>)
Section for client side events.
Declaration
public MobileToggleButtonPropertiesBuilder ClientSideEvents(Action<MobileToggleButtonClientSideEventsBuilder> clientSideEvents)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<MobileToggleButtonClientSideEventsBuilder> | clientSideEvents | The client side events. |
Returns
| Type | Description |
|---|---|
| MobileToggleButtonPropertiesBuilder |
CssClass(String)
Specifies custom theme for the control.
Declaration
public MobileToggleButtonPropertiesBuilder CssClass(string cssClass)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cssClass | The cssClass. |
Returns
| Type | Description |
|---|---|
| MobileToggleButtonPropertiesBuilder |
Enabled(Boolean)
Specifies whether to enable or disable the control.
Declaration
public MobileToggleButtonPropertiesBuilder Enabled(bool enabled)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enabled | if set to |
Returns
| Type | Description |
|---|---|
| MobileToggleButtonPropertiesBuilder |
EnablePersistence(Boolean)
Specifies to maintain the current model value to browser cookies for state maintenance. While refresh the page, the model value will get apply to the control from browser cookies.
Declaration
public MobileToggleButtonPropertiesBuilder EnablePersistence(bool enablePersistence)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enablePersistence | if set to |
Returns
| Type | Description |
|---|---|
| MobileToggleButtonPropertiesBuilder |
Render()
Declaration
public void Render()
RenderMode(RenderMode)
Specifies the rendering mode of the control.
Declaration
public MobileToggleButtonPropertiesBuilder RenderMode(RenderMode renderMode)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderMode | renderMode | The render mode. |
Returns
| Type | Description |
|---|---|
| MobileToggleButtonPropertiesBuilder |
Theme(Theme)
Specifies the theme.
Declaration
public MobileToggleButtonPropertiesBuilder Theme(Theme theme)
Parameters
| Type | Name | Description |
|---|---|---|
| Theme | theme | The theme. |
Returns
| Type | Description |
|---|---|
| MobileToggleButtonPropertiesBuilder |
ToggleState(Boolean)
Specifies whether state is on or off.
Declaration
public MobileToggleButtonPropertiesBuilder ToggleState(bool toggleState)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | toggleState | if set to |
Returns
| Type | Description |
|---|---|
| MobileToggleButtonPropertiesBuilder |
ToHtmlString()
Declaration
public string ToHtmlString()
Returns
| Type | Description |
|---|---|
| System.String |
Windows(Action<MobileToggleButtonWindowsPropertiesBuilder>)
Section for windows mode specific functionalities.
Declaration
public MobileToggleButtonPropertiesBuilder Windows(Action<MobileToggleButtonWindowsPropertiesBuilder> windowsModel)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<MobileToggleButtonWindowsPropertiesBuilder> | windowsModel | The windows model. |
Returns
| Type | Description |
|---|---|
| MobileToggleButtonPropertiesBuilder |