Sha256: e5e1caa67bc0691f80cfa0a284f6b6c4329be1efca4903e97008b0d915428247

Contents?: true

Size: 469 Bytes

Versions: 87

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Forms
    module Dsl
      # :nodoc:
      class HiddenInput < Input
        attr_reader :name

        def initialize(name:, **system_arguments)
          @name = name
          super(**system_arguments)
        end

        def to_component
          HiddenField.new(input: self)
        end

        def label
          nil
        end

        def type
          :hidden
        end
      end
    end
  end
end

Version data entries

87 entries across 87 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.12.1 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.10.0 lib/primer/forms/dsl/hidden_input.rb
openproject-primer_view_components-0.11.0 lib/primer/forms/dsl/hidden_input.rb
openproject-primer_view_components-0.10.0 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.9.0 lib/primer/forms/dsl/hidden_input.rb
openproject-primer_view_components-0.9.1 lib/primer/forms/dsl/hidden_input.rb
openproject-primer_view_components-0.9.0 lib/primer/forms/dsl/hidden_input.rb
openproject-primer_view_components-0.8.0 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.8.0 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.7.0 lib/primer/forms/dsl/hidden_input.rb
openproject-primer_view_components-0.7.0 lib/primer/forms/dsl/hidden_input.rb
openproject-primer_view_components-0.6.3 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.6.0 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.5.1 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.5.0 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.4.0 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.3.1 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.3.0 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.2.0 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.1.9 lib/primer/forms/dsl/hidden_input.rb