Sha256: 1bbd3ae9e46dcf670bc83078f66fb40a50265ac692e331a76ef7707e93272506

Contents?: true

Size: 601 Bytes

Versions: 89

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Forms
    module Dsl
      # :nodoc:
      class SubmitButtonInput < Input
        attr_reader :name, :label, :block

        def initialize(name:, label:, **system_arguments, &block)
          @name = name
          @label = label
          @block = block

          super(**system_arguments)
        end

        def to_component
          SubmitButton.new(input: self)
        end

        # :nocov:
        def type
          :submit_button
        end

        def supports_validation?
          false
        end
      end
    end
  end
end

Version data entries

89 entries across 89 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.48.0 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.47.1 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.47.0 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.34.0 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.46.1 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.46.0 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.45.0 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.44.3 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.44.2 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.44.1 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.33.0 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.44.0 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.43.1 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.43.0 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.32.0 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.42.0 lib/primer/forms/dsl/submit_button_input.rb
primer_view_components-0.31.0 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.41.1 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.41.0 lib/primer/forms/dsl/submit_button_input.rb
openproject-primer_view_components-0.40.0 lib/primer/forms/dsl/submit_button_input.rb