class NfgUi::Bootstrap::Components::DropdownMenu
Bootstrap
Dropdown
Component getbootstrap.com/docs/4.1/components/dropdowns/
Public Instance Methods
component_family()
click to toggle source
# File lib/nfg_ui/bootstrap/components/dropdown_menu.rb, line 9 def component_family :dropdown end
right()
click to toggle source
# File lib/nfg_ui/bootstrap/components/dropdown_menu.rb, line 13 def right options.fetch(:right, false) end
Private Instance Methods
css_classes()
click to toggle source
Calls superclass method
NfgUi::Bootstrap::Components::Base#css_classes
# File lib/nfg_ui/bootstrap/components/dropdown_menu.rb, line 19 def css_classes [ super, ('dropdown-menu-right' if right) ].join(' ').squish end
non_html_attribute_options()
click to toggle source
Calls superclass method
NfgUi::Bootstrap::Components::Base#non_html_attribute_options
# File lib/nfg_ui/bootstrap/components/dropdown_menu.rb, line 26 def non_html_attribute_options super.push(:right) end