christian,

that sounds pretty good

would be nice if it could be: if you define a row as X type filter(the use that filter) and if its not defined use the tablesorter parser default

### ie. ####
if tr class set to 'filter_drop_down'
-- then use drop down filter
else no filter explicity set so use tablesorter parser default
#########

thanks again

justin


On 8/30/06, Christian Bach <[EMAIL PROTECTED]> wrote:
I was thinking that the diffent parser would be in charge for choosing
the appropriate filter type.

Ex.
$.tableSorter.filters.date = {
        // add logic and markup for filter type date
}

$.tableSorter.parsers.shortDate = {
        id: 'shortDate',
        // assign a filter class
        filter: $.tableSorter.filters.date,
        is: function(s) {
                return s.match(/^\d{1,2}[/-]\d{1,2}[/-]\d{4}$/);
        },
        format: function(s) {
                s = s.replace(/-/g,'/');
                var defaults = $.tableSorter.utils.getParams();
                if(defaults.dateFormat == "mm/dd/yyyy" || defaults.dateFormat ==
"mm-dd-yyyy") {
                        /** reformat the string in ISO format */
                        s = s.replace(/(\d{1,2})[/-](\d{1,2})[/-](\d{4})/, '$3/$1/$2');
                } else if( defaults.dateFormat == "dd/mm/yyyy" || defaults.dateFormat
== "dd-mm-yyyy") {
                        /** reformat the string in ISO format */
                        s = s.replace(/(\d{1,2})[/-](\d{1,2})[/-](\d{4})/, '$3/$2/$1');
                }
                return parseFloat((new Date(s)).getTime());
        },
        sorter: $.tableSorter.sorters.numeric
};

/christian

Justin Kelly wrote:
> Hi Christain,
>
> can't wait for 1.1!!
>
> re filters,
>
> i'd love to be able to define different types of filters, so some row
> filters can be text boxes and some can be drop down lists etc..
>
> Xlsheet has some good ideas on filters (unfortunately if IE only)
> http://xlsheet.sourceforge.net/
>
> Adjustable column widths ( http://makoomba.altervista.org/grid/) would also
> be a great enhancement
>
> keep up the great work
>
> Cheers
>
> Justin
>
> On 8/30/06, Christian Bach < [EMAIL PROTECTED]> wrote:
>>
>> Hi All,
>>
>> I'm currently working on the 1.1 release of tableSorter.
>>
>> I would love to here your request for new features, improvements and
>> thoughts to make this little plugin even better!
>>
>>
>> Here's my current list of features and improvements that will be in 1.1:
>> * A real user manual, with more examples and all parameters documented.
>> * Make parameter names more logical.
>> * Provide api documentation.
>> * Commit the tableSorter in to the jQuery svn with manual and api.
>> * Add function for highlighting current selected row.
>> * Provide a excel "theme" using css.
>> * Add support for row numbering.
>> * Add filter support.
>> * Add John's pager plugin, and provide examples.
>> * Add support for custom icons (adding images to headers).
>> * Add more parsers (UK long date).
>> * Add support for HTML elements in td cells (Get values from any child
>> element)
>>
>> Thanks to everyone for all the support, cheers and comments!
>>
>> /christian
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/



--
email: [EMAIL PROTECTED]
Mob.: 0402 667 075

jabber: [EMAIL PROTECTED]
gtalk: [EMAIL PROTECTED]
msn: [EMAIL PROTECTED]
yahoo im: justinjameskelly
icq: 202893989
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to