Sha256: 6bf7442d86a1529dd154524a439f8788d4ebddb625423d6c8404cd7733c0e3b9

Contents?: true

Size: 546 Bytes

Versions: 12

Compression:

Stored size: 546 Bytes

Contents

module ExpressTemplates
  module Components
    # A Row is a Container implemented as a div with
    # a CSS class "row"
    #
    # An optional dom ID may be specified as a symbol.
    #
    # Example:
    #
    #     row(:main) {
    #       p "Some content"
    #     }
    #
    # This will render as:
    #
    #     <div id="main" class="row"><p>Some content</p></div>
    #
    class Row < Container
      include Capabilities::Configurable

      emits -> {
        div.row(my[:id]) {
          _yield
        }
      }
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
express_admin-1.2.1 vendor/gems/express_templates/lib/express_templates/components/row.rb
express_admin-1.2.0 vendor/gems/express_templates/lib/express_templates/components/row.rb
express_templates-0.5.0 lib/express_templates/components/row.rb
express_templates-0.4.2 lib/express_templates/components/row.rb
express_templates-0.4.1 lib/express_templates/components/row.rb
express_templates-0.4.0 lib/express_templates/components/row.rb
express_templates-0.3.6 lib/express_templates/components/row.rb
express_templates-0.3.5 lib/express_templates/components/row.rb
express_templates-0.3.4 lib/express_templates/components/row.rb
express_templates-0.3.2 lib/express_templates/components/row.rb
express_templates-0.3.1 lib/express_templates/components/row.rb
express_templates-0.3.0 lib/express_templates/components/row.rb