Sha256: 44b553d0b38c90033d49d3bdb453d4909dc672c3691c4c73f73852a59117aba3

Contents?: true

Size: 952 Bytes

Versions: 8

Compression:

Stored size: 952 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        module Mixins
          module TextFields
            def text_field(**attribs, &block)
              self << Components::TextField.new(parent: self,
                                                context: context,
                                                **attribs, &block)
            end

            def text_area(**attribs, &block)
              self << Components::TextArea.new(parent: self,
                                               context: context,
                                               **attribs, &block)
            end

            def hidden_field(**attribs, &block)
              self << Components::HiddenField.new(parent: self,
                                                  context: context,
                                                  **attribs, &block)
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 lib/voom/presenters/dsl/components/mixins/text_fields.rb
voom-presenters-0.1.12 lib/voom/presenters/dsl/components/mixins/text_fields.rb
voom-presenters-0.1.11 lib/voom/presenters/dsl/components/mixins/text_fields.rb
voom-presenters-0.1.10 lib/voom/presenters/dsl/components/mixins/text_fields.rb
voom-presenters-0.1.9 lib/voom/presenters/dsl/components/mixins/text_fields.rb
voom-presenters-0.1.8 lib/voom/presenters/dsl/components/mixins/text_fields.rb
voom-presenters-0.1.7 lib/voom/presenters/dsl/components/mixins/text_fields.rb
voom-presenters-0.1.6 lib/voom/presenters/dsl/components/mixins/text_fields.rb