1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-23 23:07:46 +01:00

feat: Righe predefinite per pagina

This commit is contained in:
Maicol Battistini 2022-02-15 18:46:55 +01:00
parent 6ab2925d5f
commit 5768b8a1aa
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A

View File

@ -84,6 +84,8 @@ export class RecordsPage extends Page {
*/
fieldsPrecedence: string[] = [];
defaultRowsPerPage: number = 10;
async oninit(vnode: Vnode) {
super.oninit(vnode);
// @ts-ignore
@ -310,7 +312,7 @@ export class RecordsPage extends Page {
return (
<>
<h2>{this.title}</h2>
<DataTable checkable paginated>
<DataTable checkable paginated default-rows-per-page={this.defaultRowsPerPage}>
{this.tableColumns()}
{this.tableRows()}
</DataTable>