{"action":"created","issue":{"url":"https://api.github.com/repos/rbayliss/Dropdown-Table-Filter/issues/12","repository_url":"https://api.github.com/repos/rbayliss/Dropdown-Table-Filter","labels_url":"https://api.github.com/repos/rbayliss/Dropdown-Table-Filter/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/rbayliss/Dropdown-Table-Filter/issues/12/comments","events_url":"https://api.github.com/repos/rbayliss/Dropdown-Table-Filter/issues/12/events","html_url":"https://github.com/rbayliss/Dropdown-Table-Filter/issues/12","id":181265026,"number":12,"title":"Add a Callback and Two New Options","user":{"login":"jdmdigital","id":12448527,"avatar_url":"https://avatars.githubusercontent.com/u/12448527?v=3","gravatar_id":"","url":"https://api.github.com/users/jdmdigital","html_url":"https://github.com/jdmdigital","followers_url":"https://api.github.com/users/jdmdigital/followers","following_url":"https://api.github.com/users/jdmdigital/following{/other_user}","gists_url":"https://api.github.com/users/jdmdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/jdmdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdmdigital/subscriptions","organizations_url":"https://api.github.com/users/jdmdigital/orgs","repos_url":"https://api.github.com/users/jdmdigital/repos","events_url":"https://api.github.com/users/jdmdigital/events{/privacy}","received_events_url":"https://api.github.com/users/jdmdigital/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-05T21:02:16Z","updated_at":"2016-10-07T17:44:23Z","closed_at":"2016-10-07T17:44:23Z","body":"I like the idea of adding a callback to the plugin as well as two new options: \r\n\r\n**firstOptionText** - the first select option label text.  Could be something like \"All\" or default to how it works now.\r\n\r\n**headingClass** - Option for adding a class to the column heading for floating, styling, or just hiding.  Defaults to how it works now, i.e. `style=\"display:none;\"`\r\n\r\nThe use case for the callback might be something like the following where we want to filter and then add-up all the filtered rows:\r\n\r\n`$('.filter-table').ddTableFilter(filteroptions, function() {`\r\n`\tvar sum = addColumns(); // pretend that f(x) sums visible column data`\r\n`\t$('.filter-table tfoot th:nth-child(n+1)').text(sum);`\r\n`});`\r\n\r\nI created a branch called \"Small-Edits\", but I don't have permission to publish it--which is cool.  I've attached a raw text version here for your (manual) review.  Or, you could let me publish my branch and make a pull request.  Totally up to you.  Just trying to be helpful.\r\n\r\n[ddtf.txt](https://github.com/rbayliss/Dropdown-Table-Filter/files/512312/ddtf.txt)\r\n\r\nVery nicely done, by the way!\r\n "},"comment":{"url":"https://api.github.com/repos/rbayliss/Dropdown-Table-Filter/issues/comments/252315901","html_url":"https://github.com/rbayliss/Dropdown-Table-Filter/issues/12#issuecomment-252315901","issue_url":"https://api.github.com/repos/rbayliss/Dropdown-Table-Filter/issues/12","id":252315901,"user":{"login":"jdmdigital","id":12448527,"avatar_url":"https://avatars.githubusercontent.com/u/12448527?v=3","gravatar_id":"","url":"https://api.github.com/users/jdmdigital","html_url":"https://github.com/jdmdigital","followers_url":"https://api.github.com/users/jdmdigital/followers","following_url":"https://api.github.com/users/jdmdigital/following{/other_user}","gists_url":"https://api.github.com/users/jdmdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/jdmdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdmdigital/subscriptions","organizations_url":"https://api.github.com/users/jdmdigital/orgs","repos_url":"https://api.github.com/users/jdmdigital/repos","events_url":"https://api.github.com/users/jdmdigital/events{/privacy}","received_events_url":"https://api.github.com/users/jdmdigital/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T17:44:23Z","updated_at":"2016-10-07T17:44:23Z","body":"My new options work, but the callback doesn't. No matter.  I'll work on that on my own fork."}}
{"actor":{"display_login":"jdmdigital"}}