當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript keyboard.Keyboard類代碼示例

本文整理匯總了TypeScript中@ionic-native/keyboard.Keyboard的典型用法代碼示例。如果您正苦於以下問題:TypeScript Keyboard類的具體用法?TypeScript Keyboard怎麽用?TypeScript Keyboard使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Keyboard類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: onCordovaReady

 private onCordovaReady() {
   if (window['cordova']) {
     this.keyboard.hideKeyboardAccessoryBar(true);
     this.statusBar.styleDefault();
     this.splashScreen.hide();
   }
 }
開發者ID:BBoyBreaker,項目名稱:iko-demo,代碼行數:7,代碼來源:app.component.ts

示例2: ngOnInit

 public ngOnInit() {
   if (this.platform.is('cordova') && this.platform.is('ios')) {
     this.onShowSubscription = this.keyboard.onKeyboardShow().subscribe(e => this.onShow(e));
     this.onHideSubscription = this.keyboard.onKeyboardHide().subscribe(() => this.onHide());
   }
 }
開發者ID:PoompisekK,項目名稱:myWork,代碼行數:6,代碼來源:focus-input.directive.ts

示例3: sendMessage

  sendMessage(message: string) {
    LogService.logMessage("BoardItemPage sendMessage " + this.chat.$key + " ", message);
    this.data.saveMessage("board_messages", this.chat.$key, message, null, () => {
      LogService.logMessage("BoardItemPage sendMessage success saved");
      this.message = '';
    }, false);
    this.keyboard.close();

  }
開發者ID:balynsky,項目名稱:ionic2-neighbors,代碼行數:9,代碼來源:board_item.page.ts

示例4:

    platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      statusBar.styleDefault();
      splashScreen.hide();
      if(platform.is('ios')) {
        this.keyboard.disableScroll(true);
      }

      /*const authObserver = */afAuth.authState.subscribe( user => {
        if(user) {
          console.log('app',user);
          this.auth.setUserProfile(user);
          this.rootPage = TabsPage;
          //authObserver.unsubscribe();
        }else {
          this.rootPage = LoginPage;
          //authObserver.unsubscribe();
        }
      });
    });
開發者ID:jongchun,項目名稱:ionicmemo,代碼行數:21,代碼來源:app.component.ts

示例5: clickOk

 clickOk(cb: Channel) {
   this.homeData.setChannel(cb);
   setTimeout(this.updateData(),200);
   this.keyboard.close();
 }
開發者ID:NitrofMtl,項目名稱:Arduino-Home-Thermostat,代碼行數:5,代碼來源:config-name.ts

示例6: searchbarFocus

 private searchbarFocus(): void {
   this.keyboard.show();
   this.searchbar.setFocus();
 }
開發者ID:PoompisekK,項目名稱:myWork,代碼行數:4,代碼來源:better-search.page.ts


注:本文中的@ionic-native/keyboard.Keyboard類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。