【问题标题】:angular material table with pagination: make rest call on click of next page带分页的角材料表:单击下一页时进行休息调用
【发布时间】:2018-08-31 23:03:32
【问题描述】:

当使用 mat-table 和 MatPaginator 时,处理下一页点击事件的最佳方法是什么。我创建了自定义数据源并实现了 connect() 和 disConnect() 函数。是否需要明确处理下一页事件的onClick?

【问题讨论】:

    标签: angular pagination angular-material


    【解决方案1】:

    The documentation

    @Output()                            Event emitted when the paginator changes
    page: EventEmitter<PageEvent>        the page size or page index
    

    触发此事件时,只需进行 HTTP 调用并重建数据源。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-19
      • 1970-01-01
      • 1970-01-01
      • 2020-12-17
      • 1970-01-01
      • 2019-05-03
      • 2019-05-19
      • 2021-09-03
      相关资源
      最近更新 更多