Class: FoxTail::Dropdown::MenuComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- FoxTail::Dropdown::MenuComponent
- Defined in:
- app/components/fox_tail/dropdown/menu_component.rb
Instance Method Summary collapse
Instance Method Details
#before_render ⇒ Object
13 14 15 16 17 |
# File 'app/components/fox_tail/dropdown/menu_component.rb', line 13 def before_render super html_attributes[:class] = classnames theme.apply(:root, self), html_class end |
#call ⇒ Object
19 20 21 22 23 |
# File 'app/components/fox_tail/dropdown/menu_component.rb', line 19 def call content_tag :ul, html_attributes do items.each { |item| concat content_tag(:li, item) } end end |
#render? ⇒ Boolean
9 10 11 |
# File 'app/components/fox_tail/dropdown/menu_component.rb', line 9 def render? items? end |