Hi,

I am not sure if this on discussion else where, can we make sort in theme_table ajax. I also would love to see also pager. Can any one guide me.

Thanks a lot..

Comments

rfay’s picture

Version: 8.x-dev » 7.x-dev
Category: feature » support

This isn't clear enough to be a feature request. I imagine you're making a support request. It sounds like Views module might help you quite a lot, as it has AJAX updates on sort and such.

If you intend it to be a feature request, please state very clearly exactly what you want. If it's for D8, then do mark it as such. I set it to D7 assuming this was a support request.

vikramy’s picture

Sorry, I am not so clear.

I will try to explain. For some of my custom modules, I use theme_table. The sort feature in theme_table, works great but I some how feel if we can include ajax sorting it would be really great.

I am not sure if I can use views for my need as all my tables where I get results are outside my drupal database. So I use db_set_active to switch connections.

Hope this is somewhat clear.

rfay’s picture

Title: Sort table -- ajax » Improve theme_table() to provide AJAX sorting
Version: 7.x-dev » 8.x-dev
Component: ajax system » theme system
Category: support » feature
jhedstrom’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

I think this has been done now (at least for views).