Closed ghost closed 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.
<button ng-click="filter('John')">John</button>
This button would preferably be placed outside of the table.
Hello @Fossil01,
if you are using the pipeline you could adjust the tablestate by yourself.
tablestate
It would be good if you provide us with some more informations about your situation, a plunker would be perfect.
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.