Sha256: f2f41c007802271bd0f62b376ef6546cbf5d5a6193833bc5b028910dbf454965
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
require 'voom/presenters/dsl/components/text_field' module Voom module Presenters module DSL module Components class RichTextArea < TextField attr_reader :placeholder def initialize(**attribs_, &block) super(type: :rich_text_area, **attribs_, &block) @rows = attribs.delete(:rows) || default(:rows) @placeholder = attribs.delete(:placeholder) expand! end def height return @height if locked? @height = "#{@rows * 12}px" 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/rich_text_area.rb |