angularjs - Angular JS: How do you refresh smart table from putside to show default sorting -
i using smart table grid. grid has 1 column default sorting. after user sort on other columns click on reset button refresh grid sorted default column indicator reset default column?
<table st-table="displayedpatients" st-safe-src="patients" class="table table-condensed "> <thead> <tr> <th class="st-sort-descent" st-sort="patientlastname" >last name</th> <th class="st-sort-descent" st-sort="patientfirstname" >first name</th> <th class="st-sort-descent" st-sort="patienthomephone">telephone</th> <th class="st-sort-descent" st-sort="rxnumber">rx number</th> <th class="st-sort-descent" st-sort="din">din</th> <th class="st-sort-descent" st-sort="txfiledate" st-sort-default="reverse">last fill date</th> </tr> </thead> <tr ng-repeat="patient in displayedpatients" > <td>{{patient.patientlastname}}</td> <td>{{patient.patientfirstname}}</td> <td>{{patient.patienthomephone}}</td> <td>{{patient.rxnumber}}</td> <td>{{patient.din}}</td> <td>{{patient.txfiledate | date:'dd-mmm-yy' }}</td> </tr> </table> how write button action reset default?
Comments
Post a Comment