TableTools.ShowSelectedOnly

TableTools.ShowSelectedOnly

Maxi_ZuMaxi_Zu Posts: 3Questions: 0Answers: 0
edited May 2014 in Plug-ins

Hey,

I'm trying to use the plugin for ShowSelectedOnly, but I have difficulties to make it works.
Relative page : TableTools.ShowSelectedOnly

I use Example given in the plugin documentation, for the selection : it works but I don't see button for "Show all" or "Show Selected" ?
Do I have to do implementation or these buttons appear in a specific menu ?

Actually, I don't understand where oFilterSelectedOptions appears (describe as "select box to show all or only selected items" in the plugin)

I probably missed some basic instruction... but I'm neewbie on javascript.

Did some one could help me ?
I pass this jsfiddle for giving an example of my code : http://jsfiddle.net/K5g9q/

Any help will be welcome !
Thanks,

Anaïs

Replies

  • Maxi_ZuMaxi_Zu Posts: 3Questions: 0Answers: 0
    edited May 2014

    Finnaly I found solution !

    There is a little mistake in the example , you should use the dom option O
    So, the good example is :

    $(document).ready(function () {
        $('#example').dataTable({
            "sDom": 'T<"clear">OSrtip',  
             "oTableTools": {  
                 "sRowSelect": "multi",  
             },
             "oLanguage": {  
             "oFilterSelectedOptions": {  
                  AllText: "All Row",  
                  SelectedText: "Selected Row"  
                  }  
             }  
        });  
    });  
    

    Then adjust the dom positionning if you want.

    Hope it helps.

  • Maxi_ZuMaxi_Zu Posts: 3Questions: 0Answers: 0

    Sorry, the markdown seems to don't work properly...

    Here is a jsfiddle example : http://jsfiddle.net/K5g9q/3/

This discussion has been closed.