Class ToggleButtonPropertiesBuilder
Inheritance
System.Object
ToggleButtonPropertiesBuilder
Implements
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()
Assembly: Syncfusion.EJ.dll
public class ToggleButtonPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
Declaration
public ToggleButtonPropertiesBuilder()
Declaration
public ToggleButtonPropertiesBuilder(ToggleButton togglebutton)
Parameters
Fields
Declaration
public ToggleButton togglebutton
Field Value
Methods
Specifies the primary icon of toggle button when the control is in active(checked) state. This is applicable for the content types image only, image text image, text and image and image both.
Declaration
public ToggleButtonPropertiesBuilder ActivePrefixIcon(string activePrefixIcon)
Parameters
Type |
Name |
Description |
System.String |
activePrefixIcon |
|
Returns
Specifies the secondary icon of toggle button when the control is in active(checked) state. This is applicable for the content types imagetextimage and imageboth.
Declaration
public ToggleButtonPropertiesBuilder ActiveSuffixIcon(string activeSuffixIcon)
Parameters
Type |
Name |
Description |
System.String |
activeSuffixIcon |
|
Returns
ActiveText(String)
Specifies the text to be shown in the active(checked) state of the toggle button.
Declaration
public ToggleButtonPropertiesBuilder ActiveText(string activeText)
Parameters
Type |
Name |
Description |
System.String |
activeText |
|
Returns
Specifies to trigger the toggle button client side events.
Declaration
public ToggleButtonPropertiesBuilder ClientSideEvents(Action<ToggleButtonClientSideEventsBuilder> clientSideEvents)
Parameters
Returns
ContentType(ContentType)
Specifies the content type of the toggle button. Content type can be image only, text only, image text image, text and image or image both.
Declaration
public ToggleButtonPropertiesBuilder ContentType(ContentType contentType)
Parameters
Returns
Specifies the root CSS class to button for theme customization with specified string argument.
Declaration
public ToggleButtonPropertiesBuilder CssClass(string cssClass)
Parameters
Type |
Name |
Description |
System.String |
cssClass |
|
Returns
Specifies the primary icon of toggle button when the control is in default(unchecked) state. This is applicable for the content types image only, image text image, text and image and image both.
Declaration
public ToggleButtonPropertiesBuilder DefaultPrefixIcon(string defaultPrefixIcon)
Parameters
Type |
Name |
Description |
System.String |
defaultPrefixIcon |
|
Returns
Specifies the secondary icon of toggle button when the control is in default(unchecked) state. This is applicable for the content types imagetextimage and imageboth.
Declaration
public ToggleButtonPropertiesBuilder DefaultSuffixIcon(string defaultSuffixIcon)
Parameters
Type |
Name |
Description |
System.String |
defaultSuffixIcon |
|
Returns
DefaultText(String)
Specifies the text to be shown in the default(unchecked) state of the toggle button.
Declaration
public ToggleButtonPropertiesBuilder DefaultText(string defaultText)
Parameters
Type |
Name |
Description |
System.String |
defaultText |
|
Returns
Specifies the toggle button to respond for user interaction.
Declaration
public ToggleButtonPropertiesBuilder Enabled()
Returns
Specifies the toggle button to respond for user interaction with specified boolean argument.
Declaration
public ToggleButtonPropertiesBuilder Enabled(bool enabled)
Parameters
Type |
Name |
Description |
System.Boolean |
enabled |
|
Returns
Specifies to sustain the toggle button model value even after form post back/browser refresh.
Declaration
public ToggleButtonPropertiesBuilder EnablePersistence()
Returns
Specifies to sustain the toggle button model value even after form post back/browser refresh by the specified boolean argument.
Declaration
public ToggleButtonPropertiesBuilder EnablePersistence(bool persist)
Parameters
Type |
Name |
Description |
System.Boolean |
persist |
|
Returns
Specifies to align the toggle button control in right to left direction.
Declaration
public ToggleButtonPropertiesBuilder EnableRTL()
Returns
Specifies to align the toggle button control in right to left direction with specified boolean argument.
Declaration
public ToggleButtonPropertiesBuilder EnableRTL(bool rtl)
Parameters
Type |
Name |
Description |
System.Boolean |
rtl |
|
Returns
Specifies the height of the toggle button.
Declaration
public ToggleButtonPropertiesBuilder Height(string height)
Parameters
Type |
Name |
Description |
System.String |
height |
|
Returns
Specifies to map the field of HTML attributes.
Declaration
public ToggleButtonPropertiesBuilder HtmlAttributes(IDictionary<string, object> itemHtmlAttributes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
itemHtmlAttributes |
|
Returns
Specifies the image position of the toggle button. Image position can be left or right and is applicable if content type is text and image.
Declaration
public ToggleButtonPropertiesBuilder ImagePosition(ImagePosition imagePosition)
Parameters
Returns
Specifies to prevent the toggling behavior of the control.
Declaration
public ToggleButtonPropertiesBuilder PreventToggle()
Returns
Specifies to prevent the toggling behavior of the control with specified boolean argument.
Declaration
public ToggleButtonPropertiesBuilder PreventToggle(bool preventToggle)
Parameters
Type |
Name |
Description |
System.Boolean |
preventToggle |
|
Returns
Renders the toggle button instance.
Declaration
Specifies the toggle button with rounded corners.
Declaration
public ToggleButtonPropertiesBuilder ShowRoundedCorner()
Returns
Specifies the toggle button with rounded corners by the specified boolean argument.
Declaration
public ToggleButtonPropertiesBuilder ShowRoundedCorner(bool roundedCorner)
Parameters
Type |
Name |
Description |
System.Boolean |
roundedCorner |
|
Returns
Specifies the size of the toggle button. Size can be normal, mini, small, medium or large.
Declaration
public ToggleButtonPropertiesBuilder Size(ButtonSize size)
Parameters
Returns
Specifies the toggling behavior of the control, when button is clicked.
Declaration
public ToggleButtonPropertiesBuilder ToggleState()
Returns
Specifies whether the control acts as a button or toggle button with the specified boolean argument.
Declaration
public ToggleButtonPropertiesBuilder ToggleState(bool checkedStatus)
Parameters
Type |
Name |
Description |
System.Boolean |
checkedStatus |
|
Returns
Represents an HTML-encoded string.
Declaration
public string ToHtmlString()
Returns
Type |
Description |
System.String |
|
Specifies the type of the toggle button. Type can be submit, reset or button.
Declaration
public ToggleButtonPropertiesBuilder Type(ButtonType type)
Parameters
Returns
Specifies the width of the toggle button.
Declaration
public ToggleButtonPropertiesBuilder Width(string width)
Parameters
Type |
Name |
Description |
System.String |
width |
|
Returns
Implements
System.Web.IHtmlString