ButtonBuilder Methods

A Button control.
Name Description
AccessKey(JS) Mirrors the client-side accessKey option.
AccessKey(String) Mirrors the client-side accessKey option.
ActiveStateEnabled(JS) Mirrors the client-side activeStateEnabled option.
ActiveStateEnabled(Boolean) Mirrors the client-side activeStateEnabled option.
Content(RazorBlock) Specifies content for a Button control.
Content(String) Specifies content for a Button control.
Disabled(JS) Mirrors the client-side disabled option.
Disabled(Boolean) Mirrors the client-side disabled option.
ElementAttr(JS) Mirrors the client-side elementAttr option, specifies attributes for the control’s root HTML element.
ElementAttr(Dictionary<String, Object>) Mirrors the client-side elementAttr option, specifies attributes for the control’s root HTML element.
ElementAttr(Object) Mirrors the client-side elementAttr option, specifies attributes for the control’s root HTML element.
ElementAttr(String, Object) Mirrors the client-side elementAttr option, specifies attributes for the control’s root HTML element.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
FocusStateEnabled(JS) Mirrors the client-side focusStateEnabled option.
FocusStateEnabled(Boolean) Mirrors the client-side focusStateEnabled option.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
Height(JS) Mirrors the client-side height option.
Height(Double) Mirrors the client-side height option.
Height(String) Mirrors the client-side height option.
Hint(JS) Mirrors the client-side hint option.
Hint(String) Mirrors the client-side hint option.
HoverStateEnabled(JS) Mirrors the client-side hoverStateEnabled option.
HoverStateEnabled(Boolean) Mirrors the client-side hoverStateEnabled option.
Icon(JS) Mirrors the client-side icon option.
Icon(String) Mirrors the client-side icon option.
ID(JS) Specifies the id attribute for the control’s HTML element (used for nested controls within templates).
ID(String) Specifies the id attribute for the control’s HTML element.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
OnClick(RazorBlock) Mirrors the client-side onClick option.
OnClick(String) Mirrors the client-side onClick option.
OnContentReady(RazorBlock) Mirrors the client-side onContentReady option.
OnContentReady(String) Mirrors the client-side onContentReady option.
OnDisposing(RazorBlock) Mirrors the client-side onDisposing option.
OnDisposing(String) Mirrors the client-side onDisposing option.
OnInitialized(RazorBlock) Mirrors the client-side onInitialized option.
OnInitialized(String) Mirrors the client-side onInitialized option.
OnOptionChanged(RazorBlock) Mirrors the client-side onOptionChanged option.
OnOptionChanged(String) Mirrors the client-side onOptionChanged option.
Option(String, Object) Specifies an option by its name.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Render() Inherited from WidgetBuilder.
RtlEnabled(JS) Mirrors the client-side rtlEnabled option.
RtlEnabled(Boolean) Mirrors the client-side rtlEnabled option.
StylingMode(ButtonStylingMode) Mirrors the client-side stylingMode option.
TabIndex(JS) Mirrors the client-side tabIndex option.
TabIndex(Int32) Mirrors the client-side tabIndex option.
Template(JS) Specifies the client-side template.
Template(RazorBlock) Specifies the client-side template.
Template(TemplateName) Specifies the client-side template.
Template(String) Specifies the client-side template.
Text(JS) Mirrors the client-side text option.
Text(String) Mirrors the client-side text option.
ToString() Inherited from WidgetBuilder.
ToTemplate() Renders the control as a template string for use in another control’s template. Inherited from WidgetBuilder.
Type(ButtonType) Mirrors the client-side type option.
UseSubmitBehavior(JS) Mirrors the client-side useSubmitBehavior option.
UseSubmitBehavior(Boolean) Mirrors the client-side useSubmitBehavior option.
ValidationGroup(JS) Mirrors the client-side validationGroup option.
ValidationGroup(String) Mirrors the client-side validationGroup option.
Visible(JS) Mirrors the client-side visible option.
Visible(Boolean) Mirrors the client-side visible option.
Width(JS) Mirrors the client-side width option.
Width(Double) Mirrors the client-side width option.
Width(String) Mirrors the client-side width option.
See Also