Class: Trek::MenuComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/trek/menu_component.rb

Defined Under Namespace

Classes: SectionComponent

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

#identifier

Instance Method Details

#classesObject



19
20
21
22
23
24
# File 'app/components/trek/menu_component.rb', line 19

def classes
  class_names_for(
    root_class,
    classnames
  )
end

#with_sectionObject

Support for legacy ‘section` slot (since we moved to polymorphic slots)



15
16
17
# File 'app/components/trek/menu_component.rb', line 15

def with_section(...)
  with_section_part(...)
end