ASP.NET MVC

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MobileToggleButtonPropertiesBuilder - ASP.NETMVC API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MobileToggleButtonPropertiesBuilder

    Class for MobileToggleButtonPropertiesBuilder

    Inheritance
    System.Object
    MobileToggleButtonPropertiesBuilder
    Implements
    IPropertiesBuilder
    System.Web.IHtmlString
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.JavaScript.Mobile
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class MobileToggleButtonPropertiesBuilder : IPropertiesBuilder, IHtmlString

    Constructors

    MobileToggleButtonPropertiesBuilder(ToggleButton)

    Initializes a new instance of the class.

    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 true [animate].

    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 true [enabled].

    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 true [enable persistence].

    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 true [toggle state].

    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

    Implements

    IPropertiesBuilder
    System.Web.IHtmlString
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved