annotate DataTables-1.9.4/media/src/model/model.row.js @ 2:3c160414da2e default tip

initial upload
author shiltemann
date Thu, 26 Feb 2015 14:05:23 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
3c160414da2e initial upload
shiltemann
parents:
diff changeset
1
3c160414da2e initial upload
shiltemann
parents:
diff changeset
2
3c160414da2e initial upload
shiltemann
parents:
diff changeset
3
3c160414da2e initial upload
shiltemann
parents:
diff changeset
4 /**
3c160414da2e initial upload
shiltemann
parents:
diff changeset
5 * Template object for the way in which DataTables holds information about
3c160414da2e initial upload
shiltemann
parents:
diff changeset
6 * each individual row. This is the object format used for the settings
3c160414da2e initial upload
shiltemann
parents:
diff changeset
7 * aoData array.
3c160414da2e initial upload
shiltemann
parents:
diff changeset
8 * @namespace
3c160414da2e initial upload
shiltemann
parents:
diff changeset
9 */
3c160414da2e initial upload
shiltemann
parents:
diff changeset
10 DataTable.models.oRow = {
3c160414da2e initial upload
shiltemann
parents:
diff changeset
11 /**
3c160414da2e initial upload
shiltemann
parents:
diff changeset
12 * TR element for the row
3c160414da2e initial upload
shiltemann
parents:
diff changeset
13 * @type node
3c160414da2e initial upload
shiltemann
parents:
diff changeset
14 * @default null
3c160414da2e initial upload
shiltemann
parents:
diff changeset
15 */
3c160414da2e initial upload
shiltemann
parents:
diff changeset
16 "nTr": null,
3c160414da2e initial upload
shiltemann
parents:
diff changeset
17
3c160414da2e initial upload
shiltemann
parents:
diff changeset
18 /**
3c160414da2e initial upload
shiltemann
parents:
diff changeset
19 * Data object from the original data source for the row. This is either
3c160414da2e initial upload
shiltemann
parents:
diff changeset
20 * an array if using the traditional form of DataTables, or an object if
3c160414da2e initial upload
shiltemann
parents:
diff changeset
21 * using mData options. The exact type will depend on the passed in
3c160414da2e initial upload
shiltemann
parents:
diff changeset
22 * data from the data source, or will be an array if using DOM a data
3c160414da2e initial upload
shiltemann
parents:
diff changeset
23 * source.
3c160414da2e initial upload
shiltemann
parents:
diff changeset
24 * @type array|object
3c160414da2e initial upload
shiltemann
parents:
diff changeset
25 * @default []
3c160414da2e initial upload
shiltemann
parents:
diff changeset
26 */
3c160414da2e initial upload
shiltemann
parents:
diff changeset
27 "_aData": [],
3c160414da2e initial upload
shiltemann
parents:
diff changeset
28
3c160414da2e initial upload
shiltemann
parents:
diff changeset
29 /**
3c160414da2e initial upload
shiltemann
parents:
diff changeset
30 * Sorting data cache - this array is ostensibly the same length as the
3c160414da2e initial upload
shiltemann
parents:
diff changeset
31 * number of columns (although each index is generated only as it is
3c160414da2e initial upload
shiltemann
parents:
diff changeset
32 * needed), and holds the data that is used for sorting each column in the
3c160414da2e initial upload
shiltemann
parents:
diff changeset
33 * row. We do this cache generation at the start of the sort in order that
3c160414da2e initial upload
shiltemann
parents:
diff changeset
34 * the formatting of the sort data need be done only once for each cell
3c160414da2e initial upload
shiltemann
parents:
diff changeset
35 * per sort. This array should not be read from or written to by anything
3c160414da2e initial upload
shiltemann
parents:
diff changeset
36 * other than the master sorting methods.
3c160414da2e initial upload
shiltemann
parents:
diff changeset
37 * @type array
3c160414da2e initial upload
shiltemann
parents:
diff changeset
38 * @default []
3c160414da2e initial upload
shiltemann
parents:
diff changeset
39 * @private
3c160414da2e initial upload
shiltemann
parents:
diff changeset
40 */
3c160414da2e initial upload
shiltemann
parents:
diff changeset
41 "_aSortData": [],
3c160414da2e initial upload
shiltemann
parents:
diff changeset
42
3c160414da2e initial upload
shiltemann
parents:
diff changeset
43 /**
3c160414da2e initial upload
shiltemann
parents:
diff changeset
44 * Array of TD elements that are cached for hidden rows, so they can be
3c160414da2e initial upload
shiltemann
parents:
diff changeset
45 * reinserted into the table if a column is made visible again (or to act
3c160414da2e initial upload
shiltemann
parents:
diff changeset
46 * as a store if a column is made hidden). Only hidden columns have a
3c160414da2e initial upload
shiltemann
parents:
diff changeset
47 * reference in the array. For non-hidden columns the value is either
3c160414da2e initial upload
shiltemann
parents:
diff changeset
48 * undefined or null.
3c160414da2e initial upload
shiltemann
parents:
diff changeset
49 * @type array nodes
3c160414da2e initial upload
shiltemann
parents:
diff changeset
50 * @default []
3c160414da2e initial upload
shiltemann
parents:
diff changeset
51 * @private
3c160414da2e initial upload
shiltemann
parents:
diff changeset
52 */
3c160414da2e initial upload
shiltemann
parents:
diff changeset
53 "_anHidden": [],
3c160414da2e initial upload
shiltemann
parents:
diff changeset
54
3c160414da2e initial upload
shiltemann
parents:
diff changeset
55 /**
3c160414da2e initial upload
shiltemann
parents:
diff changeset
56 * Cache of the class name that DataTables has applied to the row, so we
3c160414da2e initial upload
shiltemann
parents:
diff changeset
57 * can quickly look at this variable rather than needing to do a DOM check
3c160414da2e initial upload
shiltemann
parents:
diff changeset
58 * on className for the nTr property.
3c160414da2e initial upload
shiltemann
parents:
diff changeset
59 * @type string
3c160414da2e initial upload
shiltemann
parents:
diff changeset
60 * @default <i>Empty string</i>
3c160414da2e initial upload
shiltemann
parents:
diff changeset
61 * @private
3c160414da2e initial upload
shiltemann
parents:
diff changeset
62 */
3c160414da2e initial upload
shiltemann
parents:
diff changeset
63 "_sRowStripe": ""
3c160414da2e initial upload
shiltemann
parents:
diff changeset
64 };