Sha256: 5b9e7ad89d3f4f46223d4924d16e1af1ac678618a9fe7c71616b5464d51c5301

Contents?: true

Size: 398 Bytes

Versions: 19

Compression:

Stored size: 398 Bytes

Contents

module AdminIt
  #
  module Helpers
    #
    class TileHeader < WrapIt::Base
      include WrapIt::TextContainer
      default_tag 'h4'

      before_capture do
        field = @template.context.field(@template.context.header)
        unless field.nil?
          field.render(@template.context.entity, instance: self)
        end
      end
    end

    register :tile_header, TileHeader
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
admin_it-1.3.8 lib/admin_it/helpers/tiles.rb
admin_it-1.3.7 lib/admin_it/helpers/tiles.rb
admin_it-1.3.6 lib/admin_it/helpers/tiles.rb
admin_it-1.3.5 lib/admin_it/helpers/tiles.rb
admin_it-1.3.4 lib/admin_it/helpers/tiles.rb
admin_it-1.3.3 lib/admin_it/helpers/tiles.rb
admin_it-1.3.2 lib/admin_it/helpers/tiles.rb
admin_it-1.3.1 lib/admin_it/helpers/tiles.rb
admin_it-1.3.0 lib/admin_it/helpers/tiles.rb
admin_it-1.2.8 lib/admin_it/helpers/tiles.rb
admin_it-1.2.7 lib/admin_it/helpers/tiles.rb
admin_it-1.2.6 lib/admin_it/helpers/tiles.rb
admin_it-1.2.5 lib/admin_it/helpers/tiles.rb
admin_it-1.2.4 lib/admin_it/helpers/tiles.rb
admin_it-1.2.3 lib/admin_it/helpers/tiles.rb
admin_it-1.2.2 lib/admin_it/helpers/tiles.rb
admin_it-1.2.1 lib/admin_it/helpers/tiles.rb
admin_it-1.2.0 lib/admin_it/helpers/tiles.rb
admin_it-1.1.0 lib/admin_it/helpers/tiles.rb