Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
249 views
in Technique[技术] by (71.8m points)

angular - 在角度6的MF数据表中分页(Pagination in mf data table in angular 6)

I want to create pagination for mf datatable in serial number`1 to 10 continue on next page count from previous page.I have done this.

(我想为序列号为1到10的mf数据表创建分页,在上一页的下一页继续计数。)

in ts

(在ts)

public rowsOnPage = 10;

in html

(在HTML)

<table>
  <tr *ngFor="let data of mf.data; let i = index;">
        <td>{{i + 1}}</td>
        <td>{{data.name}}</td>
        <td>{{data.age}}</td>
   </tr>

  <mfBootstrapPaginator class="pagination-main f-right">  </mfBootstrapPaginator>
</table>`
  ask by snehal badhe translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...