这对我有用:
HTML
<p-table #table ...>
Run Code Online (Sandbox Code Playgroud)
TS
import {Table} from 'primeng/table';
@ViewChild('table') table: Table;
resetSort() {
this.table.sortOrder = 0;
this.table.sortField = '';
this.table.reset();
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2544 次 |
| 最近记录: |