Wrapping pagination div using the Bootstrap2 theme

Wrapping pagination div using the Bootstrap2 theme

ThibThib Posts: 51Questions: 2Answers: 0
edited April 2013 in General
Hey!

I don't know if it's a bug but I noted that the div that is created to wrap the pagination feature (using the Bootstrap2 theme) doesn't have an ID like "_paginate" (similar to "_filter" or "_info").

[code][/code]

I would need this div to have an ID.
Could you please point out a JS file to edit in order to fix this?

Thanks!

Regards,
Thibault

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Is there a reason you can just use the class `div.dataTables_paginate` rather than an ID? Or use a selector such as `div.{id}_wrapper div.dataTables_paginate` ?

    Allan
  • ThibThib Posts: 51Questions: 2Answers: 0
    Hi Allan,

    Actually, in Dandelion-Datatables you can position some export links when export is enabled. I use IDs in default cases (i.e. when no "theme" is enabled, like jQueryUI or Bootstrap2) but I recently found out some issues when using the Bootstrap2 theme because of the lack of this ID.

    So, yes I could use jQuery selectors but it would mean to adapt the algorithm for a particular case, whereas it works well for all other cases.

    Since I embed the needed extra JS and CSS in Dandelion-Datatables (from your Bootstrap blog http://www.datatables.net/blog/Twitter_Bootstrap_2), maybe it's possible to use them to add this ID? What do you think?

    Regards,
    Thibault
This discussion has been closed.