Skip to content

khagesh/pager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pager

JavaScript pager.

Sample 1

Build Status

  var Pager = new Module.Pager.GetPager({
            TotalResults: 220,
            ContainerSelector: '.Pager1',
            PagerFormat: "{First[class='FirstLinkPager'&text=First]} {Previous[class='PrevLinkPager'&text=Prev]} {PrevPages[class='PrevPages'&text=...]}"
                           +"  {PageNumbers[class='PG-PageNumbers']} {NextPages[class='NextPages'&text=...]} {Next[class='NextLinkPager'&text=Next]}"
                            +" {Last[class='LastLinkPager'&text=Last]} {ShowText[text=Page size:]}"
                            +" {PagerDropDown[values='10:10,20:20,50:50'&class='PagerDropDown']}"
                            +" {ShowText[text=Page]} {PageNavigator[class='PageNavigator']} {ShowText[text=of]} {TotalPages[class='TotalPages']}"
                            +" {ShowText[class='pagesText'&text=pages]} {ShowText[text=for]} {TotalResults[class='totalText']} {ShowText[text=items]}"
        });
        // hook to the change event
        Pager.OnChangeRequest = function (event) {
            console.log("Current Page for Pager1 is " + this.GetCurrentPage() + " Page Size is " + this.GetPageSize());
        };
        // render the pager
        Pager.Render();

About

JavaScript pager with many configuration options.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published