Class: AWSCDK::QuickSight::CfnDashboard::GridLayoutScreenCanvasSizeOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::GridLayoutScreenCanvasSizeOptionsProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The options that determine the sizing of the canvas used in a grid layout.
Instance Attribute Summary collapse
-
#optimized_view_port_width ⇒ String?
readonly
The width that the view port will be optimized for when the layout renders.
-
#resize_option ⇒ String
readonly
This value determines the layout behavior when the viewport is resized.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resize_option:, optimized_view_port_width: nil) ⇒ GridLayoutScreenCanvasSizeOptionsProperty
constructor
A new instance of GridLayoutScreenCanvasSizeOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resize_option:, optimized_view_port_width: nil) ⇒ GridLayoutScreenCanvasSizeOptionsProperty
Returns a new instance of GridLayoutScreenCanvasSizeOptionsProperty.
15771 15772 15773 15774 15775 15776 |
# File 'quick_sight/cfn_dashboard.rb', line 15771 def initialize(resize_option:, optimized_view_port_width: nil) @resize_option = resize_option Jsii::Type.check_type(@resize_option, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resizeOption") @optimized_view_port_width = optimized_view_port_width Jsii::Type.check_type(@optimized_view_port_width, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "optimizedViewPortWidth") unless @optimized_view_port_width.nil? end |
Instance Attribute Details
#optimized_view_port_width ⇒ String? (readonly)
The width that the view port will be optimized for when the layout renders.
15790 15791 15792 |
# File 'quick_sight/cfn_dashboard.rb', line 15790 def optimized_view_port_width @optimized_view_port_width end |
#resize_option ⇒ String (readonly)
This value determines the layout behavior when the viewport is resized.
FIXED: A fixed width will be used when optimizing the layout. In the Quick Sight console, this option is calledClassic.RESPONSIVE: The width of the canvas will be responsive and optimized to the view port. In the Quick Sight console, this option is calledTiled.
15785 15786 15787 |
# File 'quick_sight/cfn_dashboard.rb', line 15785 def resize_option @resize_option end |
Class Method Details
.jsii_properties ⇒ Object
15792 15793 15794 15795 15796 15797 |
# File 'quick_sight/cfn_dashboard.rb', line 15792 def self.jsii_properties { :resize_option => "resizeOption", :optimized_view_port_width => "optimizedViewPortWidth", } end |
Instance Method Details
#to_jsii ⇒ Object
15799 15800 15801 15802 15803 15804 15805 15806 |
# File 'quick_sight/cfn_dashboard.rb', line 15799 def to_jsii result = {} result.merge!({ "resizeOption" => @resize_option, "optimizedViewPortWidth" => @optimized_view_port_width, }) result.compact end |