Module: NfgUi::Components::Utilities::Iconable
- Included in:
- Elements::Alert, Elements::Badge, Elements::Button, Elements::DropdownItem, Elements::DropdownToggle, Elements::NavItem, Elements::NavLink, Elements::Step, Foundations::Typeface, Patterns::PageHeader, Patterns::Tile, Patterns::TileBody, Patterns::TileHeader, Patterns::TileSection, Patches::IntegratedSlatAction
- Defined in:
- lib/nfg_ui/components/utilities/iconable.rb
Overview
Allows components to be setup to accept icons
Instance Method Summary collapse
Instance Method Details
#icon ⇒ Object
8 9 10 |
# File 'lib/nfg_ui/components/utilities/iconable.rb', line 8 def icon .fetch(:icon, nil) end |