amazonka-amplifyuibuilder-2.0: Amazon Amplify UI Builder SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AmplifyUiBuilder.Types.ComponentEvent

Description

 
Synopsis

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.

Constructors

ComponentEvent' 

Fields

Instances

Instances details
FromJSON ComponentEvent Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentEvent

ToJSON ComponentEvent Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentEvent

Generic ComponentEvent Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentEvent

Associated Types

type Rep ComponentEvent :: Type -> Type #

Read ComponentEvent Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentEvent

Show ComponentEvent Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentEvent

NFData ComponentEvent Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentEvent

Methods

rnf :: ComponentEvent -> () #

Eq ComponentEvent Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentEvent

Hashable ComponentEvent Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentEvent

type Rep ComponentEvent Source # 
Instance details

Defined in Amazonka.AmplifyUiBuilder.Types.ComponentEvent

type Rep ComponentEvent = D1 ('MetaData "ComponentEvent" "Amazonka.AmplifyUiBuilder.Types.ComponentEvent" "amazonka-amplifyuibuilder-2.0-KN0MRaPu7dZCAXr3ruBTcC" 'False) (C1 ('MetaCons "ComponentEvent'" 'PrefixI 'True) (S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "bindingEvent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ActionParameters)))))

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.