some ui fix
This commit is contained in:
@@ -104,7 +104,7 @@ export class PageDataListComponent<I = any> {
|
||||
@Input() emptyPlaceholderTitle: string = 'موردی برای نمایش وجود ندارد';
|
||||
@Input() emptyPlaceholderDescription?: string = '';
|
||||
@Input() emptyPlaceholderCtaLabel?: string;
|
||||
@Input() totalRecords!: number;
|
||||
@Input() totalPages?: number = 1;
|
||||
@Input() perPage?: number = 10;
|
||||
@Input() currentPage?: number = 1;
|
||||
@Input() showEdit: boolean = false;
|
||||
@@ -191,7 +191,7 @@ export class PageDataListComponent<I = any> {
|
||||
};
|
||||
|
||||
get showPaginator() {
|
||||
return !!(this.totalRecords && this.perPage && this.totalRecords > this.perPage);
|
||||
return !!(this.totalPages && this.perPage && this.totalPages > this.perPage);
|
||||
}
|
||||
|
||||
getPreviewClasses(item: Record<string, any>, column: IColumn): any {
|
||||
|
||||
Reference in New Issue
Block a user