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: 2758
Comment
Sentinel932
Reply #2729 on : Tue August 20, 2013, 23: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: 2758
Comment
Thespian742
Reply #2728 on : Wed August 21, 2013, 03: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: 2758
Comment
Website582
Reply #2727 on : Wed August 21, 2013, 08: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: 2758
Comment
Parser368
Reply #2726 on : Wed August 21, 2013, 12: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: 2758
Comment
Better233
Reply #2725 on : Thu August 22, 2013, 17: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: 2758
Comment
Access386
Reply #2724 on : Thu August 22, 2013, 19: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: 2758
Comment
Niche103
Reply #2723 on : Fri August 23, 2013, 01: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: 2758
Comment
Griff336
Reply #2722 on : Fri August 23, 2013, 07: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: 2758
Comment
Griff693
Reply #2721 on : Fri August 23, 2013, 17: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: 2758
Comment
Veri258
Reply #2720 on : Fri August 23, 2013, 20: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 2729 | 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.