Class: AWSCDK::QuickSight::CfnDashboard::TableOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::TableOptionsProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The table options for a table visual.
Instance Attribute Summary collapse
-
#cell_style ⇒ AWSCDK::IResolvable, ...
readonly
The table cell style of table cells.
-
#header_style ⇒ AWSCDK::IResolvable, ...
readonly
The table cell style of a table header.
-
#orientation ⇒ String?
readonly
The orientation (vertical, horizontal) for a table.
-
#row_alternate_color_options ⇒ AWSCDK::IResolvable, ...
readonly
The row alternate color options (widget status, row alternate colors) for a table.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cell_style: nil, header_style: nil, orientation: nil, row_alternate_color_options: nil) ⇒ TableOptionsProperty
constructor
A new instance of TableOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cell_style: nil, header_style: nil, orientation: nil, row_alternate_color_options: nil) ⇒ TableOptionsProperty
Returns a new instance of TableOptionsProperty.
29591 29592 29593 29594 29595 29596 29597 29598 29599 29600 |
# File 'quick_sight/cfn_dashboard.rb', line 29591 def initialize(cell_style: nil, header_style: nil, orientation: nil, row_alternate_color_options: nil) @cell_style = cell_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::TableCellStyleProperty.new(**cell_style.transform_keys(&:to_sym)) : cell_style Jsii::Type.check_type(@cell_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5UYWJsZUNlbGxTdHlsZVByb3BlcnR5In1dfX0=")), "cellStyle") unless @cell_style.nil? @header_style = header_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::TableCellStyleProperty.new(**header_style.transform_keys(&:to_sym)) : header_style Jsii::Type.check_type(@header_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5UYWJsZUNlbGxTdHlsZVByb3BlcnR5In1dfX0=")), "headerStyle") unless @header_style.nil? @orientation = orientation Jsii::Type.check_type(@orientation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "orientation") unless @orientation.nil? @row_alternate_color_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::RowAlternateColorOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@row_alternate_color_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Sb3dBbHRlcm5hdGVDb2xvck9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "rowAlternateColorOptions") unless @row_alternate_color_options.nil? end |
Instance Attribute Details
#cell_style ⇒ AWSCDK::IResolvable, ... (readonly)
The table cell style of table cells.
29606 29607 29608 |
# File 'quick_sight/cfn_dashboard.rb', line 29606 def cell_style @cell_style end |
#header_style ⇒ AWSCDK::IResolvable, ... (readonly)
The table cell style of a table header.
29611 29612 29613 |
# File 'quick_sight/cfn_dashboard.rb', line 29611 def header_style @header_style end |
#orientation ⇒ String? (readonly)
The orientation (vertical, horizontal) for a table.
29616 29617 29618 |
# File 'quick_sight/cfn_dashboard.rb', line 29616 def orientation @orientation end |
#row_alternate_color_options ⇒ AWSCDK::IResolvable, ... (readonly)
The row alternate color options (widget status, row alternate colors) for a table.
29621 29622 29623 |
# File 'quick_sight/cfn_dashboard.rb', line 29621 def @row_alternate_color_options end |
Class Method Details
.jsii_properties ⇒ Object
29623 29624 29625 29626 29627 29628 29629 29630 |
# File 'quick_sight/cfn_dashboard.rb', line 29623 def self.jsii_properties { :cell_style => "cellStyle", :header_style => "headerStyle", :orientation => "orientation", :row_alternate_color_options => "rowAlternateColorOptions", } end |
Instance Method Details
#to_jsii ⇒ Object
29632 29633 29634 29635 29636 29637 29638 29639 29640 29641 |
# File 'quick_sight/cfn_dashboard.rb', line 29632 def to_jsii result = {} result.merge!({ "cellStyle" => @cell_style, "headerStyle" => @header_style, "orientation" => @orientation, "rowAlternateColorOptions" => @row_alternate_color_options, }) result.compact end |