Search results

BeforeChangeEventArgs API in Angular CheckBox API component

Represents the event arguments for a “beforeChange” event. This object contains details about an action that is about to occur, allowing you to intercept and cancel the action before it’s finalized.

Properties

cancel

boolean

Indicates whether the change action in the switch component can be canceled. When set to true, the switch action can be reverted or canceled before being finalized. This is useful in scenarios where users may want to confirm or undo the switch action before committing to the change.

checked

boolean

Returns the value that determines whether the switch is checked or unchecked. When true, the switch is in the “on” (checked) position; when false, it is in the “off” (unchecked) position. This value controls the visual state of the switch.

event

Event

The original event object that triggered the state change. This object contains information about the user action or system event (such as a mouse click, key press, or programmatic trigger) that initiated the change in the component’s state.