Class: HakumiComponents::Table::EllipsisConfig::WithTooltip

Inherits:
HakumiComponents::Table::EllipsisConfig show all
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

Input, InputHash, InputValue

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from HakumiComponents::Table::EllipsisConfig

from_input

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_titleObject (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

#tooltipObject (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