Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 83164

using sType to exclude tag content with ColumnFilterWidgets

$
0
0
Hi All,

Thanks for a great tool.

Currently, I'm using DataTables with the ColumnFilterWidger.

When I use the search box filter to narrow down my results, the HTML links embedded in one of my columns are caught by the search filter. I would prefer not to exclude the text content of the column from the search filter, just the tag content. I tried introducing some sType solutions into the code below but to no avail. Any ideas?

Thanks in advance.


    
    $(document).ready( function () {
        $('#rules_table').dataTable( {
           
           /*  "sDom": 'TW<"clear">lfrtip', */
            "sDom": '<"clear">WT<"clear">lfrtip<"clear">',
            "oTableTools": {
                "sSwfPath": "/tools/organizer/static/js/DataTables-1.9.4/extras/TableTools/media/swf/copy_csv_xls_pdf.swf",
                "aButtons": [ "copy", "xls", "pdf", "print" ]
            },
   		
          	"oColumnFilterWidgets": {
                    "aiExclude": [0,1,6,9,10,11],
                    "sSeparator": "\\s*,+\\s*",

                }, 

            "sPaginationType": "full_numbers",
            "sScrollY": '300px',

        } ); 
      /*   $("div.toolbar").html('Custom tool bar! Text/images etc.'); */

} ); 


Viewing all articles
Browse latest Browse all 83164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>