Sha256: 1016dd071ac6b209f3c6e65c6490e36eab5efa713e7b5bf31b9fc42c1b76059c

Contents?: true

Size: 612 Bytes

Versions: 17

Compression:

Stored size: 612 Bytes

Contents

module BaseEditingHelper
  include Utilities::PageHelper
  include Utilities::EnumHelper
  include Utilities::SearchHelper
  include Utilities::FormHelper


  ##
  # Genera le icone di Bootstrap icons
  def icon( name, text = nil, html_options = {})
    text, html_options = nil, text if text.is_a?(Hash)

    content_class = "bi-#{name}"
    content_class << " #{html_options[:class]}" if html_options.key?(:class)
    html_options[:class] = content_class
    html_options['aria-hidden'] ||= true

    html = content_tag(:i, nil, html_options)
    html << ' ' << text.to_s unless text.blank?
    html
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
base_editing_bootstrap-0.13.0 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.12.0 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.11.0 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.10.2 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.10.1 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.10.0 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.9.1 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.9.0 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.8.0 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.7.0 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.6.0 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.4.1 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.4.0 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.3.0 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.2.0 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.1.4 app/helpers/base_editing_helper.rb
base_editing_bootstrap-0.1.2 app/helpers/base_editing_helper.rb