Module: BootstrapHelper
- Defined in:
- app/helpers/bootstrap_helper.rb
Overview
View helper: bootstrap.
Instance Method Summary collapse
Instance Method Details
#helper_icon(content, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/helpers/bootstrap_helper.rb', line 4 def helper_icon(content, = {}) return if content.blank? icon = [:icon] || "question-circle" = [:icon_options] || {} tag.a(tabindex: [:tabindex] || 0, class: [:class], role: "button", title: [:title] || "info", data: { 'bs-toggle': 'popover', 'bs-trigger': 'focus', 'bs-placement': [:placement] || 'bottom', 'bs-content': content }) do fa_icon(icon, ) end end |