Module: Tramway::Helpers::NavbarHelper

Defined in:
lib/tramway/helpers/navbar_helper.rb

Overview

Provides navbar helpers for ActionView

Instance Method Summary collapse

Instance Method Details

#tramway_navbar(**options) {|@navbar| ... } ⇒ Object

Yields:

  • (@navbar)


9
10
11
12
13
14
15
16
17
# File 'lib/tramway/helpers/navbar_helper.rb', line 9

def tramway_navbar(**options)
  initialize_navbar

  yield @navbar if block_given?

  assign_navbar_items(options)

  render_navbar_component(options)
end