Untitled
unknown
typescript
2 years ago
853 B
11
Indexable
Never
export default class CoreTable extends Mixins(TranslationMixin, MobileModeStoreMixin) { @Prop({ default: null }) public data!: TableDataProp<ItemWithId> | null; @Prop({ default: 10 }) public skeletonItemCount!: number; public isChangingPage = false; /* Lifecycle */ public created() { this.pageSize = this.initialPageSize; return this.requestData({ isInitial: true }); } public get avatarUrl() { return searchTerm.value ? defaultAvatar : selectedUser?.value?.image_url; }; public async handleCurrentPageChange(pageNumber: number) { this.currentPage = pageNumber; this.setPageChanging(true); await this.requestData({ isInitial: false }); } }