Class JsmDateComparator
Object
|
+--JsmDateComparator
- class
JsmDateComparator
Comparator comparing {@see JsmTr} objects where the sort column is composed of date values
Defined in net/sf/jsm/table/comparators/jsmDateComparator.js
Field Summary |
<private> Object |
value1
|
<private> Object |
value2
|
<static> Object |
format
The format to parse the date-string |
Constructor Summary |
JsmDateComparator
(<JsmTr> o1,<JsmTr> o2)
Comparator comparing {@see JsmTr} objects where the sort column is composed of date values
Uses the date script (which has to be loaded in your page) of Matt Kruse: http://www.JavascriptToolbox.com/lib/date/
This library will recognize some common date patterns.
|
Method Summary |
<static> void
|
setFormat(format)
Set the format to parse the date-string
|
value1
<private> Object value1
value2
<private> Object value2
format
<static> Object format
The format to parse the date-string
JsmDateComparator
JsmDateComparator(<JsmTr> o1,<JsmTr> o2)
Comparator comparing {@see JsmTr} objects where the sort column is composed of date values
Uses the date script (which has to be loaded in your page) of Matt Kruse: http://www.JavascriptToolbox.com/lib/date/
This library will recognize some common date patterns. If this does not work use the setFormat function on this comparator
before first using the {@see JsmTable#sort} function.
If you need to specify multiple date formats in a single html page you will need to use the {@see JsmTh#setOnClick} function
to specify the format of the comparator before the {@see JsmTable#sort} function is called.
setFormat
<static> void setFormat(format)
Set the format to parse the date-string
Documentation generated by
JSDoc on Tue Sep 26 08:42:57 2006