Class: FormElements::OptionGroup
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- FormElements::OptionGroup
- Defined in:
- lib/reparcs/elements/form_elements.rb
Overview
A option group element
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ OptionGroup
constructor
Creates a new OptionGroup element.
Constructor Details
#initialize(attrs = {}) ⇒ OptionGroup
Creates a new OptionGroup element. takes an optional hash of attributes as parameter.
170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/reparcs/elements/form_elements.rb', line 170 def initialize(attrs={}) aattrs = [ "class", "id", "title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "charset", "style" ] childs = ["option"] super("optgroup", aattrs, childs, attrs) @start_element = "<optgroup" @end_element = "</optgroup>" end |