Styling CSS Classes for Page Length and Search controls

Styling CSS Classes for Page Length and Search controls

NewLISTNewLIST Posts: 7Questions: 3Answers: 0
edited May 2017 in Free community support

Hey Alan, When are you going to add the ability to configure custom CSS classes to the Page length select and Search input controls? I've searched quite a bit and it looks like you're ignoring this for some reason or I've just missed this. Sure, you can set these classes with JS easily enough, but honestly, it SHOULD be EASILY configurable without having to create a whole separate template.

One of the reasons for NOT using JS to do this is to avoid the FOUC-ed up "flash of un-styled content". JM2₵ :)

Answers

  • allanallan Posts: 64,743Questions: 1Answers: 10,712 Site admin

    You already can do that and it is used by the styling integration files such as Bootstrap and Foundation.

    $.fn.dataTable.ext.classes.sLengthSelect = 'myClass';
    

    This is a full list of the classes that are available.

    Allan

This discussion has been closed.