Module: NfgUi::Bootstrap::Utilities::DropdownDirectionable

Included in:
Components::ButtonGroup, Components::Dropdown
Defined in:
lib/nfg_ui/bootstrap/utilities/dropdown_directionable.rb

Overview

Allows components to supply the dropDIRECTION for menus This is applicable to more than just the Dropdown component

Instance Method Summary collapse

Instance Method Details

#dropleftObject



9
10
11
# File 'lib/nfg_ui/bootstrap/utilities/dropdown_directionable.rb', line 9

def dropleft
  options.fetch(:dropleft, false)
end

#droprightObject



13
14
15
# File 'lib/nfg_ui/bootstrap/utilities/dropdown_directionable.rb', line 13

def dropright
  options.fetch(:dropright, false)
end

#dropupObject



17
18
19
# File 'lib/nfg_ui/bootstrap/utilities/dropdown_directionable.rb', line 17

def dropup
  options.fetch(:dropup, false)
end