Sha256: 4967f0ba976aa03d18cfec4dc83f3253ad1ca8cfbe2ba42bd3f31b1347bfa077

Contents?: true

Size: 673 Bytes

Versions: 6

Compression:

Stored size: 673 Bytes

Contents

# frozen_string_literal: true

module Plutonium
  module UI
    module Display
      class Base < Phlexi::Display::Base
        include Plutonium::UI::Component::Behaviour

        class Builder < Builder
          def association_tag(**, &)
            create_component(Plutonium::UI::Display::Component::Association, :association, **, &)
          end

          def markdown_tag(**, &)
            create_component(Plutonium::UI::Display::Component::Markdown, :markdown, **, &)
          end
        end

        private

        def fields_wrapper(&)
          div(class: themed(:fields_wrapper)) {
            yield
          }
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
plutonium-0.16.3 lib/plutonium/ui/display/base.rb
plutonium-0.16.1 lib/plutonium/ui/display/base.rb
plutonium-0.16.0 lib/plutonium/ui/display/base.rb
plutonium-0.15.24 lib/plutonium/ui/display/base.rb
plutonium-0.15.22 lib/plutonium/ui/display/base.rb
plutonium-0.15.21 lib/plutonium/ui/display/base.rb