Module: NfgUi::Components::Utilities::LeftIconable
- Included in:
- Elements::Button, Elements::DropdownToggle
- Defined in:
- lib/nfg_ui/components/utilities/left_iconable.rb
Overview
Allows components to be setup to accept left icons Pass in a text value to identify the correct icon to be placed on the left side of the component.
Instance Method Summary collapse
Instance Method Details
#left_icon ⇒ Object
10 11 12 |
# File 'lib/nfg_ui/components/utilities/left_iconable.rb', line 10 def left_icon .fetch(:left_icon, nil) end |