Namespace jQuery.tabulate.options.table
Contains the sections of the table and their settings.
Defined in: jquery.tabulate.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Contains the sections of the table and their settings.
|
Namespace Detail
jQuery.tabulate.options.table
Contains the sections of the table and their settings. By default,
the sections "head", "body" and "foot" have been defined for you.
You may use these sections for your table, overwrite them, or
define your own.
Valid settings include:
-
container
The container for this section. Can be a string containing HTML or a jQuery object. -
key
The key in your data set to bind to this section. This should point to the data you want to build the section out with. By default, the name of the section will be used as the key.
rows -
content
May be used to set the content of the cells within the row. The content property accepts any of the following: a jQuery object, HTML, a String, a Number or a Function returning one of the previously stated types. If a function is given, three arguments will be passed in: $row (the current row, wrapped in a jQuery object), $content (the content areas of the cells within the row, wrapped in a jQuery object), and data (any data associated with the current row). -
filter
May be used to set additional properties on the row (including attributes, styles, events, etc). This property only accepts a function. Three arguments will be available at runtime: $row (the current row, wrapped in a jQuery object), $content (the content areas of the cells within the row, wrapped in a jQuery object), and data (any data associated with the current row). -
cells
Properties to assign to the columns in this section. Valid cell properties include any of the following:-
content
May be used to set the content of the cell. The content property accepts any of the following: a jQuery object, HTML, a String, a Number or a Function returning one of the previously stated types. If a function is given, three arguments will be passed in: $cell (the current cell, wrapped in a jQuery object), $content (the content area of that cell, wrapped in a jQuery object), and data (any data associated with the current cell). -
filter
May be used to set additional properties on the cell (including attributes, styles, events, etc). This property only accepts a function. Three arguments will be available at runtime: $cell (the current cell, wrapped in a jQuery object), $content (the content area of that cell, wrapped in a jQuery object), and data (any data associated with the current cell).
-
content
Properties to assign to the rows in this section. Valid row properties include any of the following:
Note that even if a section is defined, it will only be shown if it has data associated with it.