Oops, I meant 'header1' || 'header2'  etc

On 17/11/2010, at 12:09 PM, Jonno B <[email protected]> wrote:

> Hi John, the function you are looking for is
> Exhibit.TabularView.createColumnHeader in tabular-view.js
>
> Something like the below should work. Replace 'column1' || 'colum2'
> etc with the labels of the columns you do not want to be sortable. (I
> haven't tested this):
>
>
> Exhibit.TabularView.createColumnHeader = function(
>    exhibit,
>    th,
>    label,
>    sort,
>    sortAscending,
>    sortFunction
> ) {
>    var l10n = Exhibit.TabularView.l10n;
>    var template = {
>        elmt:       th,
>        className:  sort ?
>                    "exhibit-tabularView-columnHeader-sorted" :
>                    "exhibit-tabularView-columnHeader",
>        title: sort ? l10n.columnHeaderReSortTooltip :
> l10n.columnHeaderSortTooltip,
>        children: [ label ]
>    };
>    if (sort) {
>        template.children.push({
>            elmt: Exhibit.UI.createTranslucentImage(
>                sortAscending ? "images/up-arrow.png" : "images/down-
> arrow.png")
>        });
>    }
>
>    if(label!= 'header1' || 'header2' || 'header3'){
>    SimileAjax.WindowManager.registerEvent(th, "click", sortFunction,
> null);
>    }
>
>    var dom = SimileAjax.DOM.createDOMFromTemplate(template);
>    return dom;
> };
>
>
> Regards,
> Jon
>
>
>
>
> On Nov 17, 6:03 am, John Callahan <[email protected]> wrote:
>> Does anyone know of a way to disable onclick sorting for some of the column
>> headers in the Exhibit Tabular view?  I have tables where most of the
>> columns should be sorted but not all.  Is there maybe a js/jquery function
>> that can "unregister" the onclick event from the column headers?   Thanks.
>>
>> - John
>>
>> **************************************************
>> John Callahan, Research Scientist
>> Delaware Geological Survey, University of Delaware
>> URL:http://www.dgs.udel.edu
>> **************************************************
>
> --
> You received this message because you are subscribed to the Google Groups 
> "SIMILE Widgets" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/simile-widgets?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to