Sha256: 58da126df145afa3022e3a7eb36f3e3a373e1924a0da613c3252aec3ee482137
Contents?: true
Size: 565 Bytes
Versions: 6
Compression:
Stored size: 565 Bytes
Contents
module Voom module Presenters module DSL module Components class RichTextArea < TextField attr_reader :placeholder, :height, :resizable def initialize(**attribs_, &block) super(type: :rich_text_area, **attribs_, &block) @placeholder = attribs.delete(:placeholder) @rows = attribs.delete(:rows) || default(:rows) @height = "#{@rows * 24}px" @resizable = attribs.delete(:resizable) { false } expand! end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems