| id | dxButton.Options.onClick |
|---|---|
| type | function(e) |
| default |
A function that is executed when the Button is clicked or tapped.
Information about the event.
The UI component's instance.
#include common-ref-elementparam with { element: "UI component" }
#include common-ref-eventparam
The validation group to which the button is related.
To validate the editors that are related to the validation group specified for this button, use the validationGroup field of the object passed as the event handler's parameter. The validationGroup object has the following structure.
- group
The name or object of the validation group that is assigned to the button's validationGroup property. - validators
An array of Validator UI components that are included to the validation group. - validate()
The method that allows you to validate the UI components included in the validation group. - validated
The event that occurs after the group is validated. You can attach/detach a handler using the on(eventName, eventHandler)/off(eventName) methods of the group.