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