Module: FontAwesomeSelect::OptionsHelper
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- lib/font_awesome_select/options_helper.rb
Instance Method Summary collapse
Instance Method Details
#fa_icons_options(*args) ⇒ Object
5 6 7 8 9 |
# File 'lib/font_awesome_select/options_helper.rb', line 5 def (*args) Icons::NAMES.map do |icon_name| [fa_icon_select_label_for(icon_name), icon_name] end end |
#fa_selectize_icons_options(*args) ⇒ Object
11 12 13 14 15 |
# File 'lib/font_awesome_select/options_helper.rb', line 11 def (*args) Icons::NAMES.map do |icon_name| { text: fa_icon_select_label_for(icon_name), value: icon_name } end end |