Hide Pager for one page views

 * Checks if a pager should be visible (has more than 1 page).
function isPagerVisible(pager: com.ibm.xsp.component.xp.XspPager): boolean {
    var state: com.ibm.xsp.component.UIPager.PagerState = pager.createPagerState();
    return state.getRowCount() > state.getRows(); 
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
1 comment(s)Login first to comment...
Per Henrik Lausten
(at 06:21 on 29.06.2012)
Add the following to a theme to have it applied to all pagers in the application: