Sha256: b9b8e272692af1ba8271f84024cb53a7591627bb2a198857692d581fd142e087

Contents?: true

Size: 648 Bytes

Versions: 42

Compression:

Stored size: 648 Bytes

Contents

# frozen_string_literal: true

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

        attr_reader :builder, :form, :system_arguments

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

          yield(self) if block_given?
        end

        def to_component
          Ariadne::Form::Group::Component.new(inputs: inputs, builder: builder, form: form, **@options)
        end

        def type
          :group
        end

        def input?
          true
        end
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.93.2 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.93.1 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.93 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.92 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.91 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.90 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.89.1 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.89 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.88 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.87 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.86.9 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.86.8 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.86.7 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.86.6 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.86.5 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.86.4 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.86.3 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.86.2 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.86.1 lib/ariadne/forms/dsl/input_group.rb
ariadne_view_components-0.0.86 lib/ariadne/forms/dsl/input_group.rb