Sha256: 466bd95bb7c95cbea38b2afcdf8387214e0bbf65b86195ef0d3f20ec048c1fe2

Contents?: true

Size: 955 Bytes

Versions: 1

Compression:

Stored size: 955 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,
                                                **attribs, &block)
            end

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

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

            def rich_text_area(**attribs, &block)
              self << Components::RichTextArea.new(parent: self,
                                                   **attribs, &block)
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voom-presenters-0.2.0 lib/voom/presenters/dsl/components/mixins/text_fields.rb