Sha256: 5515b11b6ea77e4fa493246901129d23594435e8729139c03e386cbb6d161908
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
require 'voom/presenters/dsl/components/text_field' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voom-presenters-0.2.0 | lib/voom/presenters/dsl/components/text_area.rb |