lorenzofox3 / Smart-Table

Code source of Smart Table module: a table/grid for Angularjs
http://lorenzofox3.github.io/smart-table-website/
1.8k stars 513 forks source link

Filter with click of a button #770

Closed ghost closed 7 years ago

ghost commented 7 years ago

I would like to filter some table columns by the click of a button. Is this possible and if so, how?

Lets say I have a column USERS with 3 rows: John, John, William.

Now I have a button: <button ng-click="filter('John')">John</button> This should make the table only show Users.John.

This button would preferably be placed outside of the table.

MrWook commented 7 years ago

Hello @Fossil01,

if you are using the pipeline you could adjust the tablestate by yourself.

It would be good if you provide us with some more informations about your situation, a plunker would be perfect.