Class: FoxTail::DialogComponent
- Inherits:
-
SurfaceComponent
- Object
- ViewComponent::Base
- Base
- BaseComponent
- SurfaceComponent
- FoxTail::DialogComponent
- Defined in:
- app/components/fox_tail/dialog_component.rb
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
- #hover? ⇒ Boolean
-
#initialize(html_attributes = {}) ⇒ DialogComponent
constructor
A new instance of DialogComponent.
- #tag_name ⇒ Object
Methods inherited from SurfaceComponent
Methods inherited from BaseComponent
classname_merger, stimulus_merger, use_stimulus?, #with_html_attributes, #with_html_class
Methods inherited from Base
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
24 25 26 |
# File 'app/components/fox_tail/dialog_component.rb', line 24 def hover? false end |
#tag_name ⇒ Object
28 29 30 |
# File 'app/components/fox_tail/dialog_component.rb', line 28 def tag_name :div end |