-
Notifications
You must be signed in to change notification settings - Fork 755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tablesorter toolbar #464
Comments
I personally keep a header above the table. I dont have the code as of now but here's a screen shot. |
why not check out what the competition does? |
Why not be different/unique? ;P Actually, I just want to make the setup process as easy and fully customizable as possible. And honestly, I don't really like how datatables does it. |
why not take ideas from peers and improvise. :) |
@mohitmayank If your screenshot above is of tablesorter, care to share any of the code used to make those buttons work? :P |
and how well does the print one work? I can only get mine semi working, it seems to cut off anything that is multi page long :\ But I agree with Mottie that looks great I'd love to see the code for it. |
As much as it looks good (And that is thanks to the awesome bootstrap) the code looks that much mess. In my defense it had a lot of legacy and comments were in Hindi-English Mix. I have removed most of my framework specific code. (i hope) Once i do get time, i'll try to format it into something more usable. https://gist.github.com/mohitmayank/8043113 @TheSin- i get MultiPage Grids on multiple pages. I'll comment the code in due course. and will make this good enough to share. |
i think i'll put a brief description here -- for column display toggle, i use css classes. pretty easy to hack that one. for download in csv, i keep a record of the data inserted into table (I never checked if tablesorter itself keeps that - i was keeping such record even before i used TS), i am taking the ID's from the filtered rows to filter out the local copy of data for making csv. Print is just a simply hack. I open the whole table in a new window and print it. That new button is a just a Backbone route. I have a upload button using uploadify. one button for starting table sorter and one for filter refresh. thats pretty much it. I also have a aggregation system going on (placing that in footer). once i finish that and get some time from office, i'll wrap it all up. |
very nice and good work, I'd love to see your print and cvs code for sure. As I use both and I have a very hack way to do it as well ;) |
@TheSin- He did share it in that gist link... and what about you? Care to share? :P |
I'm going to check out this "gist" thing ;) most of my mods are now back into git, most of my code blocks are being using via different ifames (yuck I know, but it was easiest for me since it's a large app and I didn't want to reload menus and such all the time). That being said I'd be happy to share any of my work, I can post my tool bar as well, but I think @mohitmayank 's is way nicer ;) I've actually considered changing some of my code thanks to his ;) @mohitmayank how do your controls work with mobile (touchscreen) devices, I always find dropdops/popups a little clumsy with touchscreen it's why I stayed away from them in the past. But yours seems really nice. |
@TheSin- it's working real great on android (with chrome) and chrome on Ubuntu desktop with touchscreen. I recently started optimizing for mobile screens. and no issues so far. the only real problem is hover/focus triggers, which i have mostly ported to click. But i guess we have went off-topic here. @Mottie I suggest a toolbar. it can be a widget itself or a place holder. |
I'm looking for some feedback on how/where to add a tablesorter option button... kind of like shown in issue #413, but not specific for Bootstrap + font-awesome.
What I would eventually like to do is set up a plugin option something like this (
data-method
is some made-up - for now - data-attribute, so the plugin knows what to do with each option):Options popup HTML
Initialization
In case no user options are defined, I think each widget could automatically add some user adjustable options. This will mean more widget coding.
Positioning the options can be done by the developer, but in case none is defined, I think adding a "second" hidden caption would work - even though it isn't considered valid HTML, it appears to work in modern browsers (IE9+) - demo
The text was updated successfully, but these errors were encountered: