ButtonModel

Interface for the Button class.

Properties

content String

Specifies the content of the Button.

Default: ""

cssClass String

Specifies CSS classes to customize the appearance of the control.

Default: ""

disabled Boolean

Specifies whether to enable or disable the control.

Default: false

enableHtmlSanitizer Boolean

Specifies whether to allow the rendering of untrusted HTML and JavaScript values withing the control. When true, any untrusted strings or scripts will be remote before rendering.

Default: true

enableRtl Boolean

Specifies whether to render the control in right to left direction.

Default: false

enableState Boolean

Specifies whether to persist the state of the control between page loads.

No properties are saved to state at this time.

Default: false

iconCss String

Specifies the CSS classes to include an icon or image with the button.

Default: ""

iconPosition String IconPosition

Specifies the position of the icon within the Button.

Default: Left

isPrimary Boolean

Specifies whether the Button should apply the primary style.

Default: false

isPrimary Boolean

Specifies whether the Button will apply state changes when clicked. When true, the button state will toggle from active to inactive.

Default: false

locale String

Specifies the culture and localization value for this control, overriding the globally defined value.

Default: en-US