Filtered Table Behavior Demo

Here's a silly little demo of the TableFilter behavior class. This is also using tablekit to provide row striping and the sorting stuff (and the demo has this because the project I pulled it out of does, too). Basically, you attach the TableFilter behavior to a input box in a th cell. You can pass it two optional arguments: the first a function to use to stripe the rows after they are filtered (if you need such a feature), the second argument controls whether or not the filter is live or reliant on the user hitting "return" (live is the default, pass false to disable that).

(filtering is live) Years
Account 2007 2006 2005
A corporation 34,000 27,500 32,158
B Contracting, Inc. 6,500 7,250 2,200
Cucumber Soup Co. 23,405 1,400 33,001
Ace Tex Enterprises 0 0 640
Sheldon Road Crew 2,008 -1,241 4,391
Stoker Company 122 0 0
Detroit 5,678 109 672
Digitron Packaging 790 0 1,054
Domino 179 1,191 532
Zzarkirl 4,567 0 234
Cohibo 4,567 34,850 48,345
Truck Plant B/S 1,228 2,582 469
Crazinmoney 26,650 13,117 540
Sterling 436 1,324 439
Wayne 0 11,499 71,510
Quark Industries, Inc. 1,542 4,429 1,446
filter icon (click icon or hit enter to filter) Years
Account 2007 2006 2005
A corporation 34,000 27,500 32,158
B Contracting, Inc. 6,500 7,250 2,200
Cucumber Soup Co. 23,405 1,400 33,001
Ace Tex Enterprises 0 0 640
Sheldon Road Crew 2,008 -1,241 4,391
Stoker Company 122 0 0
Detroit 5,678 109 672
Digitron Packaging 790 0 1,054
Domino 179 1,191 532
Zzarkirl 4,567 0 234
Cohibo 4,567 34,850 48,345
Truck Plant B/S 1,228 2,582 469
Crazinmoney 26,650 13,117 540
Sterling 436 1,324 439
Wayne 0 11,499 71,510
Quark Industries, Inc. 1,542 4,429 1,446