Sha256: a50feb090a17c6b8fb4586e33eeded636df145143b9a153316841d7fae86e9b1

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        class TextArea < TextField
          attr_reader :rows, :cols

          def initialize(**attribs_, &block)
            super(type: :text_area, **attribs_, &block)
            @rows = attribs.delete(:rows) || default(:rows)
            @cols = attribs.delete(:cols) || default(:cols) unless full_width
            expand!
          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/text_area.rb
voom-presenters-2.1.0 lib/voom/presenters/dsl/components/text_area.rb
voom-presenters-2.0.3 lib/voom/presenters/dsl/components/text_area.rb
voom-presenters-2.0.2 lib/voom/presenters/dsl/components/text_area.rb
voom-presenters-2.0.1 lib/voom/presenters/dsl/components/text_area.rb
voom-presenters-2.0.0 lib/voom/presenters/dsl/components/text_area.rb