Class: FoxTail::SidebarComponent
Instance Attribute Summary
#html_attributes
Class Method Summary
collapse
Instance Method Summary
collapse
classname_merger, #initialize, stimulus_merger, use_stimulus?, #with_html_attributes, #with_html_class
Methods inherited from Base
fox_tail_config
Class Method Details
.stimulus_controller_name ⇒ Object
47
48
49
|
# File 'app/components/fox_tail/sidebar_component.rb', line 47
def stimulus_controller_name
:drawer
end
|
Instance Method Details
#before_render ⇒ Object
20
21
22
23
24
25
26
|
# File 'app/components/fox_tail/sidebar_component.rb', line 20
def before_render
super
with_divider if !divider && dividers?
html_attributes[:class] = classnames theme.apply(:root, self), html_class
end
|
#call ⇒ Object
28
29
30
31
32
33
|
# File 'app/components/fox_tail/sidebar_component.rb', line 28
def call
content_tag :div, html_attributes do
concat if
concat if
end
end
|