Control

Base class for all controls.

Properties

enableState Boolean

Defines whether to persist the state of the Button between page loads.

Default: false

enableRtl Boolean

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

Default: false

locale String

Override the globally defined culture and localization for the control.

Default: ""

Methods

addEventListener

Attaches an event handler to a specified element. This method allows you to set up a function that will be called whenever the specified event is delivered to the target element.

Parameter Type Description
eventName String A string value that specifies the name of the event.
handler Function Specifies the function to run when the event is triggered.

Returns: Void

appendTo

Appends the control to the specified HTML element.

Parameter Type Description
selector String HTMLElement The select to a specified HTML element or an HTML element where the control will be appended to.

Returns: Void

dataBind

Apply all pending property changes to the control.

Returns: Void

getStateData

Gets the current persisted state data for the control.

Returns: Object

getRootElement

Gets the root element of the control.

Returns: HTMLElement

refresh

Applies all pending property changes and re-renders the control.

Returns: Void

removeEventListener

Removes the attached event handler for the specified event listener.

Parameter Type Description
eventName String A string value that specifies the name of the event to be removed.
handler Function Specifies the function to be removed.

Returns: Void