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
251 views
in Technique[技术] by (71.8m points)

reactjs - 限制全选到当前页面MUIDatatables(Limit select all to current page MUIDatatables)

I am using mui-datatable in my application ( https://github.com/gregnb/mui-datatables ).

(我在我的应用程序( https://github.com/gregnb/mui-datatables )中使用mui-datatable。)

The "Select All" checkbox in header checks all the records in the table.

(标头中的“全选”复选框检查表中的所有记录。)

How can i limit this to current page?

(如何将其限制为当前页面?)

Thanks

(谢谢)

  ask by Rana translate from so

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

1 Answer

0 votes
by (71.8m points)

You may have to create your own customToolbar and creating your own checkbox that performs some logic that make rows being selected.

(您可能必须创建自己的customToolbar并创建自己的复选框,该复选框执行使选择行的某些逻辑。)

The number of rows being selected is dependent on the rowsPerPage .

(选择的行数取决于rowsPerPage 。)


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

...