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


TypeScript maquette.Projector类代码示例

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


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

示例1:

 window.onhashchange = (evt) => {
   projector.scheduleRender();
   hash = window.location.hash;
   if (page && page.destroy) {
     page.destroy();
   }
   page = registry.initializePage(hash.substr(1)); // strips the # token
 };
开发者ID:AFASResearch,项目名称:mobile-web-experiments,代码行数:8,代码来源:router.ts

示例2: sendNotification

      dataService.horizon('directMessages').findAll({ chatRoomId: chatRoomId }).order('timestamp', 'descending').limit(1).watch().subscribe((msg: any) => {

        if (msg[0]) {
          lastMessages.push(msg[0]); // TODO: check if there was already an object for the current chatroom available and overwrite it.
          lastMessages.sort((msg1, msg2) => msg1.timestamp - msg2.timestamp);

          let lastmessage = lastMessages[lastMessages.length - 1];
          let notification: NotificationInfo = {title: otheruser.firstName, body: lastmessage.text};
          sendNotification(notification);
        }
        projector.scheduleRender();
      });
开发者ID:mrlukasbos,项目名称:mobile-web-experiments,代码行数:12,代码来源:user-list.ts

示例3:

              (msg: any) => {

                console.log('ok');

                if (msg[0]) {
                  lastMessages.push(msg[0]); // TODO: check if there was already an object for the current chatroom available and overwrite it.
                  lastMessages.sort((msg1, msg2) => msg1.timestamp - msg2.timestamp);

                  let lastmessage = lastMessages[lastMessages.length - 1];
                  let notification: NotificationInfo = { title: otheruser.firstName, body: lastmessage.text };
                  //sendNotification(notification);
                }
                projector.scheduleRender();
              }
开发者ID:AFASResearch,项目名称:mobile-web-experiments,代码行数:14,代码来源:user-list.ts

示例4:

    reader.readEntries((entries: any) => {
      allEntries = entries;

      projector.scheduleRender();
    }, onErrorReadFile);
开发者ID:AFASResearch,项目名称:mobile-web-experiments,代码行数:5,代码来源:cordova-file-browser.ts

示例5: function

 reader.onloadend = function () {
   newFileContent = this.result;
   projector.scheduleRender();
 };
开发者ID:AFASResearch,项目名称:mobile-web-experiments,代码行数:4,代码来源:cordova-file-browser.ts

示例6:

 fs.readdir(os.homedir(), (err: Error, results: string[]) => {
  if (err) throw err;  

  filenames = results; 
    projector.scheduleRender(); 
  });
开发者ID:AFASResearch,项目名称:mobile-web-experiments,代码行数:6,代码来源:drag-drop-file-upload.ts

示例7:

 let setOtherUser = (otheruser: UserInfo) => { 
   username = `${otheruser.firstName} ${otheruser.lastName}`;
   projector.scheduleRender();
 }
开发者ID:AFASResearch,项目名称:mobile-web-experiments,代码行数:4,代码来源:chat-page.ts

示例8: mount

 public mount(domNode:DisplayNode, renderFn:() => VNode):void {
     this.projector.append(domNode, renderFn);
 }
开发者ID:dopatraman,项目名称:lucca,代码行数:3,代码来源:VNodeRenderer.ts

示例9:

 .then((responseText) => {
   projector.scheduleRender();
   return responseText;
 });
开发者ID:smeetsmeister,项目名称:planning-cockpit,代码行数:4,代码来源:fetch-text.ts


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