Class: Trek::MenuComponent::SectionComponent::ItemComponent
- Inherits:
-
Component
- Object
- ViewComponent::Base
- Component
- Trek::MenuComponent::SectionComponent::ItemComponent
- Defined in:
- app/components/trek/menu_component.rb
Instance Method Summary collapse
Methods included from StimulusHelpers
#stimulus_action, #stimulus_class, #stimulus_class_hash, #stimulus_class_key, #stimulus_target, #stimulus_target_hash, #stimulus_target_key, #stimulus_value, #stimulus_value_hash, #stimulus_value_key
Methods included from CssClassesHelpers
#class_for, #class_names_for, #root_class
Methods included from IdentifierHelper
Instance Method Details
#call ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'app/components/trek/menu_component.rb', line 61 def call tag.li( link_to( text, href, class: class_for("link") ), class: class_names_for( root_class, "is-active": active? ) ) end |
#render? ⇒ Boolean
75 76 77 |
# File 'app/components/trek/menu_component.rb', line 75 def render? allowed_to end |