sFilter parameter not working.

sFilter parameter not working.

hammersmashhammersmash Posts: 15Questions: 0Answers: 0
edited November 2011 in General
My understanding from the documentation is that setting sFilter in the parameters passed when creating a table will set the class for the _filter div. This is not happening for me.

I want the filter div to float left in only 1 table.

Replies

  • hammersmashhammersmash Posts: 15Questions: 0Answers: 0
    I still have no idea what I am doing. Shouldn't setting this option,

    sFilter : myFilterClass

    change the class of the filter div as in the 'Styling > Custom Classes' section? I can move the div around using sDom, but I want to change the box properties.
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    sFilter isn't an initialisation option (all of which are listed here: http://datatables.net/ref ), but rather a styling option, which can be set like this:

    [code]
    $.fn.dataTableExt.oStdClasses.sFilter = "whatever";
    [/code]

    That can then be used to target your own CSS. THe default class name is "dataTables_filter".

    Allan
  • hammersmashhammersmash Posts: 15Questions: 0Answers: 0
    Ah, ok. Thanks Allan.
This discussion has been closed.