Class: FormElements::TextArea
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- FormElements::TextArea
- Defined in:
- lib/reparcs/elements/form_elements.rb
Overview
A text area element.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ TextArea
constructor
Creates a new TextArea element, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ TextArea
Creates a new TextArea element, takes an optional hash of attributes as parameter.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/reparcs/elements/form_elements.rb', line 205 def initialize(attrs={}) aattrs = [ "class", "id", "title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "style", "charset", "hreflang" ] childs = [ "a", "abbr", "acronym", "b", "bdo", "big", "br", "button", "cite","code", "del" , "dfn", "em", "i", "img", "input", "ins", "kbd", "label", "map", "object", "q", "samp", "script", "select", "small", "span", "strong", "sub", "sup", "textarea", "tt", "var" ] super("textarea", aattrs, childs, attrs) @start_element = "<textarea" @end_element = "</textarea>" end |