Class: FoxTail::ListGroupComponent
Instance Attribute Summary
#html_attributes
Instance Method Summary
collapse
classname_merger, #initialize, stimulus_merger, use_stimulus?, #with_html_attributes, #with_html_class
Methods inherited from Base
fox_tail_config
Instance Method Details
#before_render ⇒ Object
16
17
18
19
20
|
# File 'app/components/fox_tail/list_group_component.rb', line 16
def before_render
super
html_attributes[:class] = classnames theme.apply(:root, self), html_class
end
|
#call ⇒ Object
22
23
24
25
26
|
# File 'app/components/fox_tail/list_group_component.rb', line 22
def call
content_tag :div, html_attributes do
items.each { |item| concat item }
end
end
|
#render? ⇒ Boolean
12
13
14
|
# File 'app/components/fox_tail/list_group_component.rb', line 12
def render?
items?
end
|