table.js
No description.

File Location

/goog/editor/table.js

Classes

goog.editor.Table
Class providing high level table editing functions.
goog.editor.TableCell
Class representing a table cell, which may span across multiple rows and columns
goog.editor.TableRow
Class representing a logical table row: a tr element and any cells that appear in that row.

Public Protected Private

Global Functions

goog.editor.Table.createDomTable(doccolumnsrowsopt_tableStyle) !Element
Creates a new table element, populated with cells and formatted.
Arguments:
doc : Document
Document in which to create the table element.
columns : number
Number of columns in the table.
rows : number
Number of rows in the table.
opt_tableStyle : Object=
Object containing borderWidth and borderColor properties, used to set the inital style of the table.
Returns: !Element  a table element.
code »
goog.editor.Table.getChildCellElements(tr) !Array.<Element>
Returns all child elements of a TR element that are of type TD or TH.
Arguments:
tr : Element
TR element in which to find children.
Returns: !Array.<Element>  array of child cell elements.
code »

Directory editor

File Reference