{"action":"created","issue":{"url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7164","labels_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7164/labels{/name}","comments_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7164/comments","events_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7164/events","html_url":"https://github.com/wet-boew/wet-boew/issues/7164","id":113361935,"number":7164,"title":"DataTables - Individual column searching","user":{"login":"wilkmit","id":6516828,"avatar_url":"https://avatars.githubusercontent.com/u/6516828?v=3","gravatar_id":"","url":"https://api.github.com/users/wilkmit","html_url":"https://github.com/wilkmit","followers_url":"https://api.github.com/users/wilkmit/followers","following_url":"https://api.github.com/users/wilkmit/following{/other_user}","gists_url":"https://api.github.com/users/wilkmit/gists{/gist_id}","starred_url":"https://api.github.com/users/wilkmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilkmit/subscriptions","organizations_url":"https://api.github.com/users/wilkmit/orgs","repos_url":"https://api.github.com/users/wilkmit/repos","events_url":"https://api.github.com/users/wilkmit/events{/privacy}","received_events_url":"https://api.github.com/users/wilkmit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-26T14:04:19Z","updated_at":"2015-10-26T14:28:49Z","closed_at":null,"body":"When looking at datatables I found a way to search columns individually but it is not working in WET4. \r\n\r\nMy thoughts are that it is due to me using the JASON array in the opening table tag in combination with the search columns individually code at the bottom of my page. Is there a way to combine the two or another solution all together? \r\n\r\n**JASON array:**\r\n\r\n    data-wb-tables='{\r\n        \"info\" : false, \r\n        \"filter\" : false, \r\n        \"paginate\" : false, \r\n        \"order\" : [[ 1, \"asc\" ]], \r\n        \"columnDefs\": [{ \"orderable\" : false, \"targets\":[0] }] \r\n    }'\r\n\r\n**Search columns individually code:**\r\n\r\n\t$( document ).on( \"wb-ready.wb\", function( event )  { \r\n\t\r\n\t\t$(\"tfoot\").css({\"display\":\"table-header-group\"});\r\n\t\r\n\t\t// Setup - add a text input to each footer cell\r\n\t\t$('table tfoot th').each( function () {\r\n\t\t\t$(this).html( '<input type=\"text\" class=\"form-control width100 fnt-wght-nrml\" />' );\r\n\t\t} );\r\n\t\r\n\t\t$('table tfoot th:eq(0)').find(\"input[type=text]\").remove();\r\n\t\r\n\t\t// DataTable\r\n\t\tvar table = $('table').DataTable();\r\n\t\r\n\t\t// Apply the search\r\n\t\ttable.columns().every( function () {\t\t\r\n\t\t\tvar that = this;\r\n\t\t\t$( 'input', this.footer() ).on( 'keyup change', function () {\r\n\t\t\t\tif ( that.search() !== this.value ) {\r\n\t\t\t\t\tthat\r\n\t\t\t\t\t.search( this.value )\r\n\t\t\t\t\t.draw();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\r\n\t});\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wet-boew/wet-boew/issues/comments/151155441","html_url":"https://github.com/wet-boew/wet-boew/issues/7164#issuecomment-151155441","issue_url":"https://api.github.com/repos/wet-boew/wet-boew/issues/7164","id":151155441,"user":{"login":"LaurentGoderre","id":1090826,"avatar_url":"https://avatars.githubusercontent.com/u/1090826?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGoderre","html_url":"https://github.com/LaurentGoderre","followers_url":"https://api.github.com/users/LaurentGoderre/followers","following_url":"https://api.github.com/users/LaurentGoderre/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGoderre/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGoderre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGoderre/subscriptions","organizations_url":"https://api.github.com/users/LaurentGoderre/orgs","repos_url":"https://api.github.com/users/LaurentGoderre/repos","events_url":"https://api.github.com/users/LaurentGoderre/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGoderre/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T14:28:48Z","updated_at":"2015-10-26T14:28:48Z","body":"Did you follow this post? http://datatables.net/forums/discussion/258/search-filter-text-applied-on-a-single-column\r\n\r\nYour best bet is to listen for DataTables event, then create your search box. That way you would have a valid reference for the datatable instead of hacking one out"}}