Skip to content
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

Pagination type #97

Closed
Vadorequest opened this issue May 20, 2014 · 7 comments
Closed

Pagination type #97

Vadorequest opened this issue May 20, 2014 · 7 comments

Comments

@Vadorequest
Copy link

I'm a bit wondering what I should write in the object used to initialize my datatable. For now I have this one:

{
  "paginationType": "bootstrap",
  "pagingType": "full_numbers",
  "sPaginationType": "bootstrap"
};

There are two different keys in the official documentation see http://datatables.net/forums/discussion/21184, but does the sPaginationType still used by this app?

By the way what I wrote doesn't work, if you have any idea why... Thanks!

@joerichsen
Copy link

I guess the version of DataTables bundled with this gem is version 1.9.4 and the documentation found on http://datatables.net/ is for version 1.10 which might explain why it does not work?

@Vadorequest
Copy link
Author

Hum, except that I should be using the 0.10.
See #96

@ricardodovalle
Copy link
Collaborator

@Vadorequest I am working at 1.10, but i haven't time,

I want to use 1.10 version, you can use (temporary) at your Gemfile:

gem 'jquery-datatables-rails', git: 'git://github.com/ricardodovalle/jquery-datatables-rails.git'

It is working Bootstrap and Responsive
I not closed this personal repo, because I am using at production and working it, I will merge soon.

With you want to help, I can add you ass collaborator, just ask.

Thanks

@Vadorequest
Copy link
Author

I use your personal repository, it works with the 1.10 keys, but I don't understand how apply the theme. I doesn't work as before.

assets/javascripts/application.js

//= require dataTables/jquery.dataTables
//= require dataTables/bootstrap/3/dataTables.bootstrap
// require dataTables/jquery.dataTables.typeDetection.numbersHtml
//= require dataTables/extras/ZeroClipboard
//= require dataTables/extras/dataTables.tableTools
//= require dataTables/extras/dataTables.fixedColumns
//= require dataTables/extras/dataTables.colReorder
//= require dataTables/extras/dataTables.colVis

assets/stylesheets/application.css.scss

 *= require dataTables/jquery.dataTables
 *= require dataTables/jqueryui/dataTables.jqueryui.scss
 *= require dataTables/foundation/dataTables.foundation
 *= require dataTables/bootstrap/3/dataTables.bootstrap
 *= require dataTables/extras/dataTables.tableTools
 *= require dataTables/extras/dataTables.colVis
 *= require dataTables/extras/dataTables.colvis.jqueryui
 *= require dataTables/extras/dataTables.colReorder
 *= require dataTables/extras/dataTables.fixedColumns

Screenshot:
https://docs.google.com/file/d/0ByzbHcAxmCyvUUdoazBnc1RteDg/edit

@amalc
Copy link

amalc commented May 23, 2014

@joerichsen Yss, I can confirm that 1.12 is using 1.9.4. The pagination keys work when using 1.9.4 documentation.

@ricardodovalle
Copy link
Collaborator

@Vadorequest
It is solved? Can I close the issue?
(I am trying to clean the gem issues, i did several updates, please read the README before update)

Thanks.

@Vadorequest
Copy link
Author

I don't remember how I did but I fixed it somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants