Sha256: 806a03df89accb71b73909ad313622607043e15bffe24ab38388fa36202125ad

Contents?: true

Size: 441 Bytes

Versions: 6

Compression:

Stored size: 441 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        class HiddenField < Input
          attr_reader :name

          def initialize(**attribs_, &block)
            super(type: :hidden_field,
                  **attribs_, &block)
            expand!
          end

          def value(value=nil)
            return @value if locked?
            @value = value
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/dsl/components/hidden_field.rb
voom-presenters-2.1.0 lib/voom/presenters/dsl/components/hidden_field.rb
voom-presenters-2.0.3 lib/voom/presenters/dsl/components/hidden_field.rb
voom-presenters-2.0.2 lib/voom/presenters/dsl/components/hidden_field.rb
voom-presenters-2.0.1 lib/voom/presenters/dsl/components/hidden_field.rb
voom-presenters-2.0.0 lib/voom/presenters/dsl/components/hidden_field.rb