Module: Headmin::BootstrapHelper
- Included in:
- AdminHelper
- Defined in:
- app/helpers/headmin/bootstrap_helper.rb
Instance Method Summary collapse
Instance Method Details
#bootstrap_icon(icon, options = {}) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/headmin/bootstrap_helper.rb', line 3 def bootstrap_icon(icon, = {}) tag_name = .extract!(:tag_name).fetch(:tag_name, :i) [:class] = ["bi", "bi-#{icon}", .dig(:class)].compact.join(" ") content_tag(tag_name, ) {} end |