Sha256: 88f8f02b2136e9a4da8d67df25a32d6ae3950098c0b6ba5aa2817d50679c99e1

Contents?: true

Size: 657 Bytes

Versions: 175

Compression:

Stored size: 657 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Forms
    module Dsl
      # :nodoc:
      class InputGroup
        include InputMethods

        attr_reader :builder, :form, :system_arguments

        def initialize(builder:, form:, **system_arguments)
          @builder = builder
          @form = form
          @system_arguments = system_arguments

          yield(self) if block_given?
        end

        def to_component
          Group.new(inputs: inputs, builder: builder, form: form, **@system_arguments)
        end

        def type
          :group
        end

        def input?
          true
        end
      end
    end
  end
end

Version data entries

175 entries across 175 versions & 2 rubygems

Version Path
primer_view_components-0.36.5 app/lib/primer/forms/dsl/input_group.rb
openproject-primer_view_components-0.52.2 app/lib/primer/forms/dsl/input_group.rb
primer_view_components-0.36.4 app/lib/primer/forms/dsl/input_group.rb
openproject-primer_view_components-0.52.1 app/lib/primer/forms/dsl/input_group.rb
openproject-primer_view_components-0.52.0 app/lib/primer/forms/dsl/input_group.rb
primer_view_components-0.36.3 app/lib/primer/forms/dsl/input_group.rb
openproject-primer_view_components-0.51.0 app/lib/primer/forms/dsl/input_group.rb
primer_view_components-0.36.2 app/lib/primer/forms/dsl/input_group.rb
openproject-primer_view_components-0.50.1 app/lib/primer/forms/dsl/input_group.rb
openproject-primer_view_components-0.50.0 app/lib/primer/forms/dsl/input_group.rb
primer_view_components-0.36.1 app/lib/primer/forms/dsl/input_group.rb
primer_view_components-0.36.0 app/lib/primer/forms/dsl/input_group.rb
openproject-primer_view_components-0.49.2 app/lib/primer/forms/dsl/input_group.rb
primer_view_components-0.35.2 app/lib/primer/forms/dsl/input_group.rb
openproject-primer_view_components-0.49.1 app/lib/primer/forms/dsl/input_group.rb
openproject-primer_view_components-0.49.0 app/lib/primer/forms/dsl/input_group.rb
primer_view_components-0.35.1 app/lib/primer/forms/dsl/input_group.rb
primer_view_components-0.35.0 app/lib/primer/forms/dsl/input_group.rb
openproject-primer_view_components-0.48.2 lib/primer/forms/dsl/input_group.rb
openproject-primer_view_components-0.48.1 lib/primer/forms/dsl/input_group.rb