Class: TableElements::Table
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- TableElements::Table
- Defined in:
- lib/reparcs/elements/table_elements.rb
Overview
A table element ‘<table></table>’
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Table
constructor
Creates a new Table element, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Table
Creates a new Table element, takes an optional hash of attributes as parameter.
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/reparcs/elements/table_elements.rb', line 70 def initialize(attrs={}) aattrs = [ "class", "id", "title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "style", "border", "cellpadding", "cellspacing", "frame", "rules", "summary", "width" ] childs = [ "caption", "col", "colgroup", "tbody", "tfoot", "thead", "tr" ] super("table", aattrs, childs, attrs) @start_element = "<table" @end_element = "</table>" end |