Module: Card::Set::All::Bootstrap::Navbar::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod024-bootstrap/all/bootstrap/navbar.rb

Instance Method Summary collapse

Instance Method Details

Options

Parameters:

  • opts (Hash) (defaults to: {})

Options Hash (opts):

  • brand (String, Hash<name, href>)
  • class (String)
  • no_collapse (Boolean)
  • toggle_align (:left, :right)


15
16
17
18
19
20
21
# File 'platypus/tmp/set/gem-defaults/mod024-bootstrap/all/bootstrap/navbar.rb', line 15

def navbar id, opts={}, &block
  nav_opts = opts[:navbar_opts] || {}
  nav_opts[:class] ||= opts[:class]
  add_class nav_opts,
            "navbar navbar-dark bg-#{opts.delete(:navbar_type) || 'primary'}"
  navbar_content id, opts, nav_opts, &block
end