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

javascript - Can I disable only "show last page" button in mat-paginator?

I know that I can hide both first and last page button at once with showFirstLastButtons property.

Is there a way to hide and disable only last page button?


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

1 Answer

0 votes
by (71.8m points)

There is no build in way to display only the first navigation button. What you could do instead is hide the last button with css.

The last button has the class mat-paginator-navigation-last. You can use that to do things like visibility: hidden or display: none to hide it.


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

...