Class: FormElements::Select
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- FormElements::Select
- Defined in:
- lib/reparcs/elements/form_elements.rb
Overview
A select element
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Select
constructor
Creates a new Select element, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Select
Creates a new Select element, takes an optional hash of attributes as parameter.
152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/reparcs/elements/form_elements.rb', line 152 def initialize(attrs={}) aattrs = [ "class", "id", "title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "accesskey", "charset", "style" ] childs = ["optgroup", "option"] super("select", aattrs, childs, attrs) @start_element = "<select" @end_element = "</select>" end |