in .sorting_*

in .sorting_*

jasonw22jasonw22 Posts: 2Questions: 0Answers: 0
edited April 2014 in DataTables 1.10
Is there a way to make DataTables insert into sorted column headers?

Replies

  • jasonw22jasonw22 Posts: 2Questions: 0Answers: 0
    Resolved this by adding manually within the th in the html, and added sass to my stylesheet like this:

    .sorting_desc span.sort-direction {
    @extend .caret;
    }
    .sorting_asc span.sort-direction {
    @extend .caret;
    border-top: 0;
    border-bottom: $caret-width-base solid;
    content: "";
    }
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Yup, probably the best solution for the moment. DataTables 1.10 introduces the concept of 'renderers' which will make this kind of thing possible via plug-ins in future.

    Allan
This discussion has been closed.