Ionic : scroll ลงไปล่างสุดอัตโนมัติ

Ask by Save Pongsiri 5 months ago
import { Component, ViewChild } from '@angular/core';
import { Content } from 'ionic-angular';
...
export class ScrollToBottom {
  @ViewChild(Content) content: Content;
  constructor(){}
  ionViewDidLoad()
  {
     setTimeout(() => {
        this.content.scrollToBottom(300);
     }, 1000);
  }
}



0 Replies


Your Reply