Sha256: ba4a2f9afdfbde72c3f5ee05111ba195c52fd0958b7c6ba01c4b78bcb2e561ca

Contents?: true

Size: 447 Bytes

Versions: 44

Compression:

Stored size: 447 Bytes

Contents

module ExpressAdmin
  module Components
    module Navigation

      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
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
express_admin-2.0.0.b app/components/express_admin/icon.rb
express_admin-2.0.0.a app/components/express_admin/icon.rb
express_admin-1.8.1 app/components/express_admin/icon.rb
express_admin-1.8.0 app/components/express_admin/icon.rb
express_admin-1.7.32 app/components/express_admin/icon.rb
express_admin-1.7.31 app/components/express_admin/icon.rb
express_admin-1.7.30 app/components/express_admin/icon.rb
express_admin-1.7.29 app/components/express_admin/icon.rb
express_admin-1.7.28 app/components/express_admin/icon.rb
express_admin-1.7.27 app/components/express_admin/icon.rb
express_admin-1.7.26 app/components/express_admin/icon.rb
express_admin-1.7.25 app/components/express_admin/icon.rb
express_admin-1.7.24 app/components/express_admin/icon.rb
express_admin-1.7.23 app/components/express_admin/icon.rb
express_admin-1.7.22 app/components/express_admin/icon.rb
express_admin-1.7.21 app/components/express_admin/icon.rb
express_admin-1.7.20 app/components/express_admin/icon.rb
express_admin-1.7.19 app/components/express_admin/icon.rb
express_admin-1.7.18 app/components/express_admin/icon.rb
express_admin-1.7.17 app/components/express_admin/icon.rb