annotate DataTables-1.9.4/media/src/model/model.row.js @ 9:7300ed4c1481 draft default tip

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