Class: FoxTail::DialogComponent

Inherits:
SurfaceComponent show all
Defined in:
app/components/fox_tail/dialog_component.rb

Instance Attribute Summary

Attributes inherited from BaseComponent

#html_attributes

Instance Method Summary collapse

Methods inherited from SurfaceComponent

#before_render, #call

Methods inherited from BaseComponent

classname_merger, stimulus_merger, use_stimulus?, #with_html_attributes, #with_html_class

Methods inherited from Base

fox_tail_config

Constructor Details

#initialize(html_attributes = {}) ⇒ DialogComponent

Returns a new instance of DialogComponent.



19
20
21
22
# File 'app/components/fox_tail/dialog_component.rb', line 19

def initialize(html_attributes = {})
  html_attributes[:border] = false unless html_attributes.key? :border
  super(html_attributes)
end

Instance Method Details

#hover?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'app/components/fox_tail/dialog_component.rb', line 24

def hover?
  false
end

#tag_nameObject



28
29
30
# File 'app/components/fox_tail/dialog_component.rb', line 28

def tag_name
  :div
end