Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
data ComponentEvent Source #
Describes the configuration of an event. You can bind an event and a
corresponding action to a Component
or a ComponentChild
. A button
click is an example of an event.
See: newComponentEvent
smart constructor.
ComponentEvent' | |
|
Instances
newComponentEvent :: ComponentEvent Source #
Create a value of ComponentEvent
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:action:ComponentEvent'
, componentEvent_action
- The action to perform when a specific event is raised.
$sel:bindingEvent:ComponentEvent'
, componentEvent_bindingEvent
- Binds an event to an action on a component. When you specify a
bindingEvent
, the event is called when the action is performed.
$sel:parameters:ComponentEvent'
, componentEvent_parameters
- Describes information about the action.
componentEvent_action :: Lens' ComponentEvent (Maybe Text) Source #
The action to perform when a specific event is raised.
componentEvent_bindingEvent :: Lens' ComponentEvent (Maybe Text) Source #
Binds an event to an action on a component. When you specify a
bindingEvent
, the event is called when the action is performed.
componentEvent_parameters :: Lens' ComponentEvent (Maybe ActionParameters) Source #
Describes information about the action.