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 |
Synopsis
- data Form = Form' {}
- newForm :: Text -> FormDataTypeConfig -> Text -> FormActionType -> Text -> Text -> Text -> FormStyle -> Form
- form_cta :: Lens' Form (Maybe FormCTA)
- form_tags :: Lens' Form (Maybe (HashMap Text Text))
- form_appId :: Lens' Form Text
- form_dataType :: Lens' Form FormDataTypeConfig
- form_environmentName :: Lens' Form Text
- form_fields :: Lens' Form (HashMap Text FieldConfig)
- form_formActionType :: Lens' Form FormActionType
- form_id :: Lens' Form Text
- form_name :: Lens' Form Text
- form_schemaVersion :: Lens' Form Text
- form_sectionalElements :: Lens' Form (HashMap Text SectionalElement)
- form_style :: Lens' Form FormStyle
Documentation
Contains the configuration settings for a Form
user interface (UI)
element for an Amplify app. A form is a component you can add to your
project by specifying a data source as the default configuration for the
form.
See: newForm
smart constructor.
Form' | |
|
Instances
:: Text | |
-> FormDataTypeConfig | |
-> Text | |
-> FormActionType | |
-> Text | |
-> Text | |
-> Text | |
-> FormStyle | |
-> Form |
Create a value of Form
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:cta:Form'
, form_cta
- Stores the call to action configuration for the form.
$sel:tags:Form'
, form_tags
- One or more key-value pairs to use when tagging the form.
$sel:appId:Form'
, form_appId
- The unique ID of the Amplify app associated with the form.
$sel:dataType:Form'
, form_dataType
- The type of data source to use to create the form.
$sel:environmentName:Form'
, form_environmentName
- The name of the backend environment that is a part of the Amplify app.
$sel:fields:Form'
, form_fields
- Stores the information about the form's fields.
$sel:formActionType:Form'
, form_formActionType
- The operation to perform on the specified form.
$sel:id:Form'
, form_id
- The unique ID of the form.
$sel:name:Form'
, form_name
- The name of the form.
$sel:schemaVersion:Form'
, form_schemaVersion
- The schema version of the form when it was imported.
$sel:sectionalElements:Form'
, form_sectionalElements
- Stores the visual helper elements for the form that are not associated
with any data.
$sel:style:Form'
, form_style
- Stores the configuration for the form's style.
form_cta :: Lens' Form (Maybe FormCTA) Source #
Stores the call to action configuration for the form.
form_tags :: Lens' Form (Maybe (HashMap Text Text)) Source #
One or more key-value pairs to use when tagging the form.
form_dataType :: Lens' Form FormDataTypeConfig Source #
The type of data source to use to create the form.
form_environmentName :: Lens' Form Text Source #
The name of the backend environment that is a part of the Amplify app.
form_fields :: Lens' Form (HashMap Text FieldConfig) Source #
Stores the information about the form's fields.
form_formActionType :: Lens' Form FormActionType Source #
The operation to perform on the specified form.
form_sectionalElements :: Lens' Form (HashMap Text SectionalElement) Source #
Stores the visual helper elements for the form that are not associated with any data.