Interface CfnForm.SectionalElementProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnForm.SectionalElementProperty.Jsii$Proxy
- Enclosing class:
- CfnForm
@Stability(Stable)
public static interface CfnForm.SectionalElementProperty
extends software.amazon.jsii.JsiiSerializable
The
SectionalElement property specifies the configuration information for a visual helper element for a form.
A sectional element can be a header, a text block, or a divider. These elements are static and not associated with any data.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.amplifyuibuilder.*;
SectionalElementProperty sectionalElementProperty = SectionalElementProperty.builder()
.type("type")
// the properties below are optional
.excluded(false)
.level(123)
.orientation("orientation")
.position(FieldPositionProperty.builder()
.below("below")
.fixed("fixed")
.rightOf("rightOf")
.build())
.text("text")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnForm.SectionalElementPropertystatic final classAn implementation forCfnForm.SectionalElementProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectCfnForm.SectionalElementProperty.Excluded.default NumbergetLevel()Specifies the size of the font for aHeadingsectional element.default StringSpecifies the orientation for aDividersectional element.default ObjectSpecifies the position of the text in a field for aTextsectional element.default StringgetText()The text for aTextsectional element.getType()The type of sectional element.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The type of sectional element.Valid values are
Heading,Text, andDivider. -
getExcluded
CfnForm.SectionalElementProperty.Excluded. -
getLevel
Specifies the size of the font for aHeadingsectional element.Valid values are
1 | 2 | 3 | 4 | 5 | 6. -
getOrientation
Specifies the orientation for aDividersectional element.Valid values are
horizontalorvertical. -
getPosition
Specifies the position of the text in a field for aTextsectional element. -
getText
The text for aTextsectional element. -
builder
-