我正在为 Grid 使用智能表。我的网格有一列作为默认排序。在用户对其他列进行排序后,将单击重置按钮以刷新按默认列排序的网格以及指标是否也重置回默认列?
<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>
您如何编写按钮操作以重置为默认值?