className in columns not working

className in columns not working

sid@nomisma.insid@nomisma.in Posts: 11Questions: 2Answers: 0
edited March 2017 in Free community support

adding "dt-nowrap" to colums className is not working.
I'm using bootstrap styling.
is there a specific stylesheet we need to use?

reference page
https://datatables.net/manual/styling/classes#Cell-classes

Answers

  • allanallan Posts: 61,934Questions: 1Answers: 10,155 Site admin

    The classes noted there are specific to the DataTables styling. The Bootstrap integration stylesheet doesn't has the same options (it probably should thinking about it).

    You would just need to add:

    td.dt-nowrap {
      white-space: nowrap;l
    }
    

    to your CSS.

    Allan

  • sid@nomisma.insid@nomisma.in Posts: 11Questions: 2Answers: 0
    edited March 2017

    Thanks, i already did that.
    Docs are a bit misleading. You need to correct them.

  • tangerinetangerine Posts: 3,350Questions: 37Answers: 394

    Docs are a bit misleading. You need to correct them.

    It would help if you pointed to specific lines and explained why you have a problem with them.

  • sid@nomisma.insid@nomisma.in Posts: 11Questions: 2Answers: 0

    For example cell classes listed in the mentioned page , dont work with bootstrap styling. I'm have not tried with anyother, instead wrote my own styles.

  • allanallan Posts: 61,934Questions: 1Answers: 10,155 Site admin

    Agreed. As I stated above, the Bootstrap style sheet should probably include those typographic classes. I've added that to my to do list.

    Allan

  • sid@nomisma.insid@nomisma.in Posts: 11Questions: 2Answers: 0

    thanks

This discussion has been closed.