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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnForm.SectionalElementProperty
static final class
An implementation forCfnForm.SectionalElementProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
Excludes a sectional element that was generated by default for a specified data model.default Number
getLevel()
Specifies the size of the font for aHeading
sectional element.default String
Specifies the orientation for aDivider
sectional element.default Object
Specifies the position of the text in a field for aText
sectional element.default String
getText()
The text for aText
sectional 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.- See Also:
-
getLevel
Specifies the size of the font for aHeading
sectional element.Valid values are
1 | 2 | 3 | 4 | 5 | 6
.- See Also:
-
getOrientation
Specifies the orientation for aDivider
sectional element.Valid values are
horizontal
orvertical
.- See Also:
-
getPosition
Specifies the position of the text in a field for aText
sectional element.- See Also:
-
getText
The text for aText
sectional element.- See Also:
-
builder
-