this.notificationService.getNotificationListForTop(position, isNeedRegistNotExistsReadStatus, this.keyWord).then((data: any) => { this.notificationListForTop = data; this.isLoadCompleted = true; this.isScrollToTopButtonVisible = false; if (isRefresh) { refresher.complete(); } if (this.isFirstTimeLoad && data.length > 9) { this.pageContent.scrollTo(0, 46); this.isShowSearchBar = true; this.isFirstTimeLoad = false; } });
public guideLineContent5(){ this.content.scrollTo(0, this.guideline5.nativeElement.offsetTop, 500); }
scrollBottom() { //auto scroll page to bottom let dimensions = this.content.getContentDimensions(); this.content.scrollTo(0, dimensions.scrollBottom, 0); }
medias => { // if (medias.length > 0) { this.mediaList = medias; // this.mediaList = []; // for (var i = 0; i < medias.length; i++) { // this.mediaList.push({ // Id: medias.item(i).Id, // Author: medias.item(i).Author, // Title: medias.item(i).Title, // Description: medias.item(i).Description, // Location: medias.item(i).Location, // MediaDate: medias.item(i).MediaDate, // UploadDate: medias.item(i).UploadDate, // Active: medias.item(i).Active, // SubCategoryId: medias.item(i).SubCategoryId, // Downloaded: medias.item(i).Downloaded // }); // } // } // this.mediaList = medias; this.activeSC == subCategory.Id ? this.activeSC = 0 : this.activeSC = subCategory.Id; // setTimeout( // () => { var pos = this.findPos(event.target); this.content.scrollTo(pos.left, pos.top - 1, 100); // } // , 0); return this.mediaList; }