module NfgUi::Bootstrap::Utilities::DropdownDirectionable
Allows components to supply the dropDIRECTION for menus This is applicable to more than just the Dropdown component
Public Instance Methods
dropleft()
click to toggle source
# File lib/nfg_ui/bootstrap/utilities/dropdown_directionable.rb, line 9 def dropleft options.fetch(:dropleft, false) end
dropright()
click to toggle source
# File lib/nfg_ui/bootstrap/utilities/dropdown_directionable.rb, line 13 def dropright options.fetch(:dropright, false) end
dropup()
click to toggle source
# File lib/nfg_ui/bootstrap/utilities/dropdown_directionable.rb, line 17 def dropup options.fetch(:dropup, false) end
Private Instance Methods
css_classes()
click to toggle source
Calls superclass method
# File lib/nfg_ui/bootstrap/utilities/dropdown_directionable.rb, line 23 def css_classes [ super, ('dropleft' if dropleft), ('dropright' if dropright), ('dropup' if dropup) ].join(' ').squish end
non_html_attribute_options()
click to toggle source
Calls superclass method
# File lib/nfg_ui/bootstrap/utilities/dropdown_directionable.rb, line 32 def non_html_attribute_options super.push(:dropleft, :dropright, :dropup) end