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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnForm.SectionalElementPropertystatic final classAn implementation forCfnForm.SectionalElementProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectExcludes a sectional element that was generated by default for a specified data model.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.- See Also:
-
getExcluded
Excludes a sectional element that was generated by default for a specified data model.Returns union: either
BooleanorIResolvable- See Also:
-
getLevel
Specifies the size of the font for aHeadingsectional element.Valid values are
1 | 2 | 3 | 4 | 5 | 6.- See Also:
-
getOrientation
Specifies the orientation for aDividersectional element.Valid values are
horizontalorvertical.- See Also:
-
getPosition
Specifies the position of the text in a field for aTextsectional element.Returns union: either
IResolvableorCfnForm.FieldPositionProperty- See Also:
-
getText
The text for aTextsectional element.- See Also:
-
builder
-