module NfgUi::Components::Utilities::Iconable

Allows components to be setup to accept icons

Public Instance Methods

icon() click to toggle source
# File lib/nfg_ui/components/utilities/iconable.rb, line 8
def icon
  options.fetch(:icon, nil)
end

Private Instance Methods

non_html_attribute_options() click to toggle source
Calls superclass method
# File lib/nfg_ui/components/utilities/iconable.rb, line 14
def non_html_attribute_options
  super.push(:icon, :text)
end