Sha256: 50b64ba680ebad53e2f440ba5702ce0e6058dd6573509cf53043a1d0529cb92a

Contents?: true

Size: 354 Bytes

Versions: 17

Compression:

Stored size: 354 Bytes

Contents

module ExpressAdmin
  class Icon < ExpressTemplates::Components::Configurable

    tag :i

    has_argument :id, "The name of the ionic icon withouth the ion- prefix. See http://ionicons.com/cheatsheet.html",
                 as: :name,
                 type: [:symbol, :string]

    before_build {
      add_class("ion-#{config[:name]}")
    }
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
express_admin-1.6.3 app/components/express_admin/icon.rb
express_admin-1.6.2 app/components/express_admin/icon.rb
express_admin-1.6.1 app/components/express_admin/icon.rb
express_admin-1.6.0 app/components/express_admin/icon.rb
express_admin-1.5.0 app/components/express_admin/icon.rb
express_admin-1.4.11 app/components/express_admin/icon.rb
express_admin-1.4.10 app/components/express_admin/icon.rb
express_admin-1.4.9 app/components/express_admin/icon.rb
express_admin-1.4.8 app/components/express_admin/icon.rb
express_admin-1.4.7 app/components/express_admin/icon.rb
express_admin-1.4.6 app/components/express_admin/icon.rb
express_admin-1.4.5 app/components/express_admin/icon.rb
express_admin-1.4.4 app/components/express_admin/icon.rb
express_admin-1.4.3 app/components/express_admin/icon.rb
express_admin-1.4.2 app/components/express_admin/icon.rb
express_admin-1.4.1 app/components/express_admin/icon.rb
express_admin-1.4.0 app/components/express_admin/icon.rb