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
primer_view_components-0.0.112 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.111 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.110 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.109 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.108 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.107 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.106 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.105 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.104 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.103 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.102 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.101 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.100 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.99 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.98 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.97 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.96 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.95 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.94 lib/primer/forms/dsl/hidden_input.rb
primer_view_components-0.0.93 lib/primer/forms/dsl/hidden_input.rb