Pager Widget

If you are looking for a way to quickly add a pager to your web app and you don't want to write several lines of code then look no further.

The new Pager Widget is exactly what you're looking for. It's simple and easy to use. Just follow the steps below and you will be up and running in no time:

Step 1: Download and extract the Pager Widget zip file

Step 2: Copy the pager.php file to the raxan/ui/widgets folder

Step 3: Add the following code to your html code

    <div id="pager1"
         xt-ui="Pager"
         xt-ui-pagerSize="6"
         xt-ui-totalPages="50"
         xt-ui-itemClass="rax-glossy rax-active-pal"></div>

Step 4: Add the following code to you web page or css theme:

<style type="text/css">
    .rax-pager a {
        width:25px;
        height:20px;
        display:inline-block !important;
        display:inline; /* for  ie 6 */
        line-height: 20px;
        text-align: center;
        margin: 0 2px;
        vertical-align: middle;
        border: solid 1px #ccc;
    }
</style>

Step 5: Add the following code to your Page Controller Class

<?php
    Raxan::loadWidget('pager');
?>

Step 6: View the page within the browser and you should be the Pager Widget

To listen to the pagechange event add the following attribute to your pager element:

xt-bind="pagechange,updateDisplay"

Then add the following event code to your page controller class:

<?php
    public function updateDisplay($e,$page) {
        $this->append("You have selected Page # ".$page);
    }
?>
Pager Widget

There are lots of way you can customize the pager widget so be sure to check out the available options.

See it in Action:
DEMO  DOWNLOAD


Widget Properties
Name Description Default Value
Properties    
currentPage Current selected page 1
totalPages Total number of pages 10
pagerSize Number of pages to shown on pager. 5  
truncateSize Number of pages to truncate 0
truncateOffset Pager truncate offset 0
delimiter Delimiter to be used when rendering page items  
showPrevNext Shows the Next and Previous buttons 0
baseClass Main css class for the widget rax-pager
itemClass CSS class to be assigned to a page item rax-inactive-pal
selectedItemClass CSS Class to be assigned to the selected page item rax-selected-pal
prevNextClass CSS class to be assigned to the Next and Previous buttons rax-inactive-pal
enableAjaxMode Enable Ajax Mode 0
     
Methods    
     
Events    
pagechange Page Change Event.
Event Handler Syntax: function($e,$page)
 
Oakley eyepatch
Posts: 2780
Comment
Sentinel932
Reply #2751 on : Tue August 20, 2013, 20:58:57
Thanks for sharing such a good thinking, paragraphis pleasant, thats why i have read it fully
Oakley eyepatch http://www.beruberealestate.com/ok.php
Moncler beanie
Posts: 2780
Comment
Thespian742
Reply #2750 on : Wed August 21, 2013, 00:12:49
Hi there, yes this article Pager Widget | Raxan Framework is actually fastidious and I have learned lot of things from it on the topic of blogging. thanks.
Moncler beanie http://www.fmscu.org/files/en.php
Air Jordan Retro 8
Posts: 2780
Comment
Website582
Reply #2749 on : Wed August 21, 2013, 05:42:07
These all YouTube gaming video lessons Pager Widget | Raxan Framework are really in nice quality, I watched out all these along through my colleagues.
Air Jordan Retro 8 http://www.enatethiopiacafe.com/include/jj.php
Nike Air Max CB34
Posts: 2780
Comment
Parser368
Reply #2748 on : Wed August 21, 2013, 09:57:45
If any one wants to be a successful blogger, after that he/she must look at this article Pager Widget | Raxan Framework, because it consists of al} strategies related to that.
Nike Air Max CB34 http://www.belinkielaw.com/About.html
Oakley jawbone
Posts: 2780
Comment
Better233
Reply #2747 on : Thu August 22, 2013, 14:17:36
Very energetic article Pager Widget | Raxan Framework, I loved that a lot. Will there be a part 2?
Oakley jawbone http://www.pvyo.org/graphics_200809/ok.php
Jordan Website
Posts: 2780
Comment
Access386
Reply #2746 on : Thu August 22, 2013, 16:57:23
Hi there to all, the YouTube record that Pager Widget | Raxan Framework is posted at here has truly nice quality along with nice audio feature
Jordan Website http://www.caponbridgefiberworks.com/page28.php
Woolrich Outlet store
Posts: 2780
Comment
Niche103
Reply #2745 on : Thu August 22, 2013, 22:59:00
I visited many blogs but the audio quality for audio songs existing at this web page Pager Widget | Raxan Framework is genuinely marvelous.
Woolrich Outlet store http://www.androidtopten.com/idc/wo.php
Cheap Nike Air Max Shoes
Posts: 2780
Comment
Griff336
Reply #2744 on : Fri August 23, 2013, 04:19:12
I all the time used to study paragraphin news papers but now as I am a user of net thus from now I am using net for content, thanks to web.
Cheap Nike Air Max Shoes http://www.lossdoulasinternational.com/include/SB/iss.php
Woolrich hats
Posts: 2780
Comment
Griff693
Reply #2743 on : Fri August 23, 2013, 14:36:38
Pager Widget | Raxan Framework Peculiar article, totally what I wanted to find.
Woolrich hats http://www.centralperformingarts.com/images/wo.php
Girl Jordans
Posts: 2780
Comment
Veri258
Reply #2742 on : Fri August 23, 2013, 17:31:24
This piece of writing Pager Widget | Raxan Framework is related to web programming is genuinely good in support of me because I am website programmer. Thanks for sharing keep it up.
Girl Jordans http://www.bakertimberproducts.com/Page3.php
Showing comments 1 to 10 of 2751 | Next | Last

Leave a Comment

Required fields are marked with *.
If you have trouble reading the code, click on the code itself to generate a new random code.