Class: AWSCDK::AmplifyUIBuilder::CfnComponent::SortPropertyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AmplifyUIBuilder::CfnComponent::SortPropertyProperty
- Defined in:
- amplify_ui_builder/cfn_component.rb
Overview
The SortProperty property specifies how to sort the data that you bind to a component.
Instance Attribute Summary collapse
-
#direction ⇒ String
readonly
The direction of the sort, either ascending or descending.
-
#field ⇒ String
readonly
The field to perform the sort on.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(direction:, field:) ⇒ SortPropertyProperty
constructor
A new instance of SortPropertyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(direction:, field:) ⇒ SortPropertyProperty
Returns a new instance of SortPropertyProperty.
1742 1743 1744 1745 1746 1747 |
# File 'amplify_ui_builder/cfn_component.rb', line 1742 def initialize(direction:, field:) @direction = direction Jsii::Type.check_type(@direction, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "direction") @field = field Jsii::Type.check_type(@field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "field") end |
Instance Attribute Details
#direction ⇒ String (readonly)
The direction of the sort, either ascending or descending.
1753 1754 1755 |
# File 'amplify_ui_builder/cfn_component.rb', line 1753 def direction @direction end |
#field ⇒ String (readonly)
The field to perform the sort on.
1758 1759 1760 |
# File 'amplify_ui_builder/cfn_component.rb', line 1758 def field @field end |
Class Method Details
.jsii_properties ⇒ Object
1760 1761 1762 1763 1764 1765 |
# File 'amplify_ui_builder/cfn_component.rb', line 1760 def self.jsii_properties { :direction => "direction", :field => "field", } end |
Instance Method Details
#to_jsii ⇒ Object
1767 1768 1769 1770 1771 1772 1773 1774 |
# File 'amplify_ui_builder/cfn_component.rb', line 1767 def to_jsii result = {} result.merge!({ "direction" => @direction, "field" => @field, }) result.compact end |