Class: FormElements::Input
- Inherits:
-
Element
- Object
- Element
- FormElements::Input
- Defined in:
- lib/reparcs/elements/form_elements.rb
Overview
A Input element
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Input
constructor
Creates a new Input element, takes an optional hash of attributes as parameters.
Constructor Details
#initialize(attrs = {}) ⇒ Input
Creates a new Input element, takes an optional hash of attributes as parameters.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/reparcs/elements/form_elements.rb', line 84 def initialize(attrs={}) aattrs = [ "class", "id", "title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "accept", "accesskey", "alt", "checked", "disabled", "maxlength", "name", "onblur", "onchange", "onblur", "onfocus", "onselect", "readonly", "src", "tabindex", "type", "usemap", "value" ] super("input", aattrs, attrs) @start_element = "<input" @end_element = " />" end |