[YADCF] Place the filters into a separate section.

[YADCF] Place the filters into a separate section.

CohavenCohaven Posts: 7Questions: 2Answers: 0

Is there a way in YADCF to place the filters into a separate section, as is possible with the ColumnFilter plugin?

    $('#listDocs').dataTable().columnFilter({
        sPlaceHolder: "head:before",
         aoColumns:[
        null,
        { sSelector: "#Product" , type:"select"},
        { sSelector: "#Version" ,  type:"select"},
        { sSelector: "#Type" ,  type:"select"},                      
    ]});

In this example, the filters would go under the specified-by-id DOM element using the sSelector property.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @Cohaven ,

    It's a small world ;) I'll ping @daniel_r - YADCF is his baby, so if he's online he may be able to give a quick reply.

    Cheers,

    Colin

  • daniel_rdaniel_r Posts: 460Questions: 4Answers: 67
    Answer ✓

    Heya,

    You got two options, filter_container_id and filter_container_selector read docs and you can also look at the showcase

  • CohavenCohaven Posts: 7Questions: 2Answers: 0

    Thanks! That looks exactly like what I was looking for. Didn't catch that the parameter details are in the plugin js file. That should definitely come in handy for any of my future needs.

This discussion has been closed.