Module: NfgUi::Components::Traits::Nav

Included in:
Elements::Nav
Defined in:
lib/nfg_ui/components/traits/nav.rb

Overview

Access to pre-designed traits

Constant Summary collapse

TRAITS =
%i[tabs
fill
justify].freeze

Instance Method Summary collapse

Instance Method Details

#fill_traitObject



16
17
18
# File 'lib/nfg_ui/components/traits/nav.rb', line 16

def fill_trait
  options[:fill] = true
end

#justify_traitObject



20
21
22
# File 'lib/nfg_ui/components/traits/nav.rb', line 20

def justify_trait
  options[:justify] = true
end

#tabs_traitObject



12
13
14
# File 'lib/nfg_ui/components/traits/nav.rb', line 12

def tabs_trait
  options[:tabs] = true
end