swluken / TouchTreeGrid

Sencha Touch Tree Grid, Basic Grid and Accordion Component with Examples
52 stars 20 forks source link

Tap listener on header cells #4

Closed jllodra closed 8 years ago

jllodra commented 8 years ago

Hi Steve,

do you know if it is possible to add a tap listener on header cells? So I could get its column index and dataIndex when tapping?

Thank you

swluken commented 8 years ago

I add tap listener if columnSorting = true in updateHeader() method. See handleColumnSort() method for how to get dataIndex and colIndex. You could perhaps override/extend updateHeader() method to call your own method in lieu of column sorting.

Regards, Steve