当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript ionic-angular.Content类代码示例

本文整理汇总了TypeScript中ionic-angular.Content的典型用法代码示例。如果您正苦于以下问题:TypeScript Content类的具体用法?TypeScript Content怎么用?TypeScript Content使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Content类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1:

 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;
     }
 });
开发者ID:intasect,项目名称:intalinx-mobile,代码行数:13,代码来源:index.ts

示例2:

      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;
      }
开发者ID:davidkirolos,项目名称:RolApp,代码行数:31,代码来源:subcategoryList.ts

示例3: setTimeout

      ).subscribe(([section, isFullscreen]) => {
        this.content.resize();

        // Hack to make it happen after resize is done
        setTimeout(() => {
          this.calculateOffset(section, isFullscreen);
        }, 0);
      });
开发者ID:bGraphic,项目名称:varsom-hybrid,代码行数:8,代码来源:overview.ts

示例4:

 (childNodes: TreeNode[]) => {
     this.folderItems = {};
     // we found all children of the node we're
     // traversing to (key)
     for (let i in childNodes) {
         let childNode: TreeNode = childNodes[i],
             childKey: number = childNode[DB_KEY_PATH];
         newFolderItems[childKey] = childNode;
     } // for
     this.folderNode = folderNode;
     this.folderItems = newFolderItems;
     // resize content, because a change in this.folderNode
     // can affect the header's visibility
     this.content.resize();
 },
开发者ID:zhu04303661,项目名称:ionic-recorder,代码行数:15,代码来源:library-page.ts

示例5: ionViewDidEnter

  //Function called once the view is full loaded
  ionViewDidEnter() {

    //Scroll to the bottom of the messages (Request below is for polling, not getting messages)
    this.content.scrollToBottom(this.scrollDuration);

    //Grab our user from localstorage
    let user = JSON.parse(localStorage.getItem(AppSettings.shushItemName));

    //Start polling to get messages
    let poll = this.appMessaging.conversationRequestPoll(user.access_token);

    //Get a reference to this
    let self = this;

    this.pollingRequest = poll.subscribe(function(success) {
      //Success!

      //Stop loading
      self.appNotify.stopLoading().then(function() {

        //Add our messages/Get our conversation
        self.appMessaging.conversations = success;

        //Update our conversations
        self.updateConversation();
      });
    }, function(error) {
      //Error!

      //Stop Loading
      self.appNotify.stopLoading().then(function() {
        //Pass to Error Handler
        self.appNotify.handleError(error, [{
          status: 404,
          callback: function() {
            //Pop back to the All conversations view

            self.navCtrl.pop();
          }
        }]);
      });

    }, function() {
      //Completed
    })
  }
开发者ID:pro-to-tip,项目名称:pro-to-tip.github.io,代码行数:47,代码来源:conversation.ts

示例6: setTimeout

        setTimeout(() => {
            let screenHeight: number = this.maincontent.getNativeElement().clientHeight;
            let sizes: PosterPercentageItem[] = [];

            for (let i = 0; i < this.tmdbConfig.images.poster_sizes.length; i++) {
                let posterSize: string = this.tmdbConfig.images.poster_sizes[i];
                let size: number = +posterSize.substring(1, posterSize.length);
                let percentage: number = (size / screenHeight) * 100;

                if (!isNaN(percentage)) {
                    sizes.push({ percentage: percentage, posterSize: posterSize, size: size });
                }
            }

            var closestPercentage = findClosest(sizes.map(x => x.percentage), 40);
            this.posterWidth = sizes.find(x => x.percentage == closestPercentage).posterSize;
            this.imageHeight = this.scrollHeight = screenHeight * 0.4;
        }, 0);
开发者ID:KajB,项目名称:WatchIT,代码行数:18,代码来源:home.ts

示例7: updateConversation

  //Function to update our conversation
  updateConversation() {

    //Find and update our current conversation
    for (let i = 0; i < this.appMessaging.conversations.length; ++i) {
      if (this.convoId == this.appMessaging.conversations[i]._id) {

        //Update the conversation
        this.convo = this.appMessaging.conversations[i];

        //Break from the loop
        i = this.appMessaging.conversations.length;
      }
    }

    //Update the UI
    this.changeDetector.detectChanges();

    //Scroll to the bottom of the messages
    this.content.scrollToBottom(this.scrollDuration);
  }
开发者ID:pro-to-tip,项目名称:pro-to-tip.github.io,代码行数:21,代码来源:conversation.ts

示例8: scrollToBottom

 scrollToBottom(){
   this.content.scrollToBottom(300);//300ms animation speed
 }
开发者ID:thomas1511,项目名称:ionicScrollProblem,代码行数:3,代码来源:hello-ionic.ts

示例9: tapEvent

 //点击到顶部
 tapEvent(e) {
   this.content.scrollToTop();
 }
开发者ID:,项目名称:,代码行数:4,代码来源:

示例10:

 this._scrollToTopSubscription = this.section$.subscribe(() => {
   this.content.scrollToTop();
 });
开发者ID:bGraphic,项目名称:varsom-hybrid,代码行数:3,代码来源:overview.ts


注:本文中的ionic-angular.Content类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。