Naveen
Naveen

Reputation: 777

How to set count to a PagingButton in SAP ui5

XML

<PagingButton positionChange="pagination" position="1" count="5" id="pagingBtn" nextButtonTooltip="next" previousButtonTooltip="previous"/>

Instead of count="5", From controller I have to set count of paging button. How to set count from controller..?

Upvotes: 0

Views: 653

Answers (1)

Thomas L.
Thomas L.

Reputation: 249

this.byId("pagingBtn").setProperty("count", 10);

and delete the count attribute from the xml

Upvotes: 2

Related Questions