Class: AWSCDK::QuickSight::CfnAnalysis::TooltipOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::TooltipOptionsProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The display options for the visual tooltip.
Instance Attribute Summary collapse
-
#field_based_tooltip ⇒ AWSCDK::IResolvable, ...
readonly
The setup for the detailed tooltip.
-
#selected_tooltip_type ⇒ String?
readonly
The selected type for the tooltip.
-
#tooltip_visibility ⇒ String?
readonly
Determines whether or not the tooltip is visible.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(field_based_tooltip: nil, selected_tooltip_type: nil, tooltip_visibility: nil) ⇒ TooltipOptionsProperty
constructor
A new instance of TooltipOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(field_based_tooltip: nil, selected_tooltip_type: nil, tooltip_visibility: nil) ⇒ TooltipOptionsProperty
Returns a new instance of TooltipOptionsProperty.
29751 29752 29753 29754 29755 29756 29757 29758 |
# File 'quick_sight/cfn_analysis.rb', line 29751 def initialize(field_based_tooltip: nil, selected_tooltip_type: nil, tooltip_visibility: nil) @field_based_tooltip = field_based_tooltip.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::FieldBasedTooltipProperty.new(**field_based_tooltip.transform_keys(&:to_sym)) : field_based_tooltip Jsii::Type.check_type(@field_based_tooltip, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkZpZWxkQmFzZWRUb29sdGlwUHJvcGVydHkifV19fQ==")), "fieldBasedTooltip") unless @field_based_tooltip.nil? @selected_tooltip_type = selected_tooltip_type Jsii::Type.check_type(@selected_tooltip_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "selectedTooltipType") unless @selected_tooltip_type.nil? @tooltip_visibility = tooltip_visibility Jsii::Type.check_type(@tooltip_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tooltipVisibility") unless @tooltip_visibility.nil? end |
Instance Attribute Details
#field_based_tooltip ⇒ AWSCDK::IResolvable, ... (readonly)
The setup for the detailed tooltip.
The tooltip setup is always saved. The display type is decided based on the tooltip type.
29766 29767 29768 |
# File 'quick_sight/cfn_analysis.rb', line 29766 def field_based_tooltip @field_based_tooltip end |
#selected_tooltip_type ⇒ String? (readonly)
The selected type for the tooltip. Choose one of the following options:.
BASIC: A basic tooltip.DETAILED: A detailed tooltip.
29774 29775 29776 |
# File 'quick_sight/cfn_analysis.rb', line 29774 def selected_tooltip_type @selected_tooltip_type end |
#tooltip_visibility ⇒ String? (readonly)
Determines whether or not the tooltip is visible.
29779 29780 29781 |
# File 'quick_sight/cfn_analysis.rb', line 29779 def tooltip_visibility @tooltip_visibility end |
Class Method Details
.jsii_properties ⇒ Object
29781 29782 29783 29784 29785 29786 29787 |
# File 'quick_sight/cfn_analysis.rb', line 29781 def self.jsii_properties { :field_based_tooltip => "fieldBasedTooltip", :selected_tooltip_type => "selectedTooltipType", :tooltip_visibility => "tooltipVisibility", } end |
Instance Method Details
#to_jsii ⇒ Object
29789 29790 29791 29792 29793 29794 29795 29796 29797 |
# File 'quick_sight/cfn_analysis.rb', line 29789 def to_jsii result = {} result.merge!({ "fieldBasedTooltip" => @field_based_tooltip, "selectedTooltipType" => @selected_tooltip_type, "tooltipVisibility" => @tooltip_visibility, }) result.compact end |