Class: AWSCDK::AmplifyUIBuilder::CfnForm::FieldPositionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
amplify_ui_builder/cfn_form.rb

Overview

The FieldPosition property specifies the field position.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(below: nil, fixed: nil, right_of: nil) ⇒ FieldPositionProperty

Returns a new instance of FieldPositionProperty.

Parameters:

  • below (String, nil) (defaults to: nil)

    The field position is below the field specified by the string.

  • fixed (String, nil) (defaults to: nil)

    The field position is fixed and doesn't change in relation to other fields.

  • right_of (String, nil) (defaults to: nil)

    The field position is to the right of the field specified by the string.



915
916
917
918
919
920
921
922
# File 'amplify_ui_builder/cfn_form.rb', line 915

def initialize(below: nil, fixed: nil, right_of: nil)
  @below = below
  Jsii::Type.check_type(@below, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "below") unless @below.nil?
  @fixed = fixed
  Jsii::Type.check_type(@fixed, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fixed") unless @fixed.nil?
  @right_of = right_of
  Jsii::Type.check_type(@right_of, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "rightOf") unless @right_of.nil?
end

Instance Attribute Details

#belowString? (readonly)

The field position is below the field specified by the string.



928
929
930
# File 'amplify_ui_builder/cfn_form.rb', line 928

def below
  @below
end

#fixedString? (readonly)

The field position is fixed and doesn't change in relation to other fields.



933
934
935
# File 'amplify_ui_builder/cfn_form.rb', line 933

def fixed
  @fixed
end

#right_ofString? (readonly)

The field position is to the right of the field specified by the string.



938
939
940
# File 'amplify_ui_builder/cfn_form.rb', line 938

def right_of
  @right_of
end

Class Method Details

.jsii_propertiesObject



940
941
942
943
944
945
946
# File 'amplify_ui_builder/cfn_form.rb', line 940

def self.jsii_properties
  {
    :below => "below",
    :fixed => "fixed",
    :right_of => "rightOf",
  }
end

Instance Method Details

#to_jsiiObject



948
949
950
951
952
953
954
955
956
# File 'amplify_ui_builder/cfn_form.rb', line 948

def to_jsii
  result = {}
  result.merge!({
    "below" => @below,
    "fixed" => @fixed,
    "rightOf" => @right_of,
  })
  result.compact
end