class Voom::Presenters::DSL::Components::RichTextArea

Attributes

height[R]
placeholder[R]
resizable[R]

Public Class Methods

new(**attribs_, &block) click to toggle source
Calls superclass method
# File lib/voom/presenters/dsl/components/rich_text_area.rb, line 8
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