Class: TableElements::TableHeader

Inherits:
ContainerElement
  • Object
show all
Defined in:
lib/reparcs/elements/table_elements.rb

Overview

A table header element.

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ TableHeader

Creates a new TableHeader element, takesan optional hash of attributes as parameter.



185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/reparcs/elements/table_elements.rb', line 185

def initialize(attrs={})
  aattrs = [
    "class", "id", "title", "dir", "xml:lang",
    "onclick", "ondblclick", "onkeydown", "onkeypress",
    "onkeyup", "onmousedown", "onmousemove", "onmouseout",
    "onmouseover", "onmouseup", "style", "charset",
    "hreflang", "align", "char", "charoff", "valign"
  ]
  super("thead", aattrs, ["tr"], attrs)
  @start_element = "<thead"
  @end_element = "</thead>"
end