onFocusEvents([callback], [remove])
Class: RadioButton. Method inherited from UIComponent.
Description:
Gets, registers or unregisters a focus event handler function.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
function |
The event handler function that receives a FocusEvent object. Pass |
|
|
|
boolean |
false |
Set to |
Returns:
An array of handler functions if no arguments are passed, otherwise this component for method chaining.
Type: this | Array.<function()>
Examples:
// Example event object:
const e = {
target: object, // The component that triggered the event.
type: string, // `focus`, `blur`.
cause: string // `UNKNOWN`, `ACTIVATION`, `TRAVERSAL_FORWARD`, `TRAVERSAL_BACKWARD`.
temporary: boolean, // Identifies the focus change event as temporary or permanent
};
