Class: HakumiComponents::Table::EllipsisConfig::WithTooltip
- Inherits:
-
HakumiComponents::Table::EllipsisConfig
- Object
- HakumiComponents::Table::EllipsisConfig
- HakumiComponents::Table::EllipsisConfig::WithTooltip
- Extended by:
- T::Sig
- Defined in:
- app/components/hakumi_components/table/ellipsis_config.rb
Overview
Ellipsis active with an Ant Design tooltip. tooltip is guaranteed non-nil. show_title controls whether the native HTML title attribute is also set.
Constant Summary
Constants inherited from HakumiComponents::Table::EllipsisConfig
Instance Attribute Summary collapse
-
#show_title ⇒ Object
readonly
Returns the value of attribute show_title.
-
#tooltip ⇒ Object
readonly
Returns the value of attribute tooltip.
Instance Method Summary collapse
-
#initialize(show_title:, tooltip:) ⇒ WithTooltip
constructor
A new instance of WithTooltip.
Methods inherited from HakumiComponents::Table::EllipsisConfig
Constructor Details
#initialize(show_title:, tooltip:) ⇒ WithTooltip
Returns a new instance of WithTooltip.
65 66 67 68 |
# File 'app/components/hakumi_components/table/ellipsis_config.rb', line 65 def initialize(show_title:, tooltip:) @show_title = T.let(show_title, T::Boolean) @tooltip = T.let(tooltip, TooltipConfig) end |
Instance Attribute Details
#show_title ⇒ Object (readonly)
Returns the value of attribute show_title.
71 72 73 |
# File 'app/components/hakumi_components/table/ellipsis_config.rb', line 71 def show_title @show_title end |
#tooltip ⇒ Object (readonly)
Returns the value of attribute tooltip.
74 75 76 |
# File 'app/components/hakumi_components/table/ellipsis_config.rb', line 74 def tooltip @tooltip end |