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)
 
Hermes Outlet
Posts: 2758
Comment
Gerald249
Reply #2709 on : Tue September 10, 2013, 06:28:10
Hello to every body, it my first visit of this weblog; this web site Pager Widget | Raxan Framework carries remarkable and in fact fine material in favor of readers.
Hermes Outlet http://majacsteel.com/h2.asp
White Nike Air Max
Posts: 2758
Comment
Humphrey867
Reply #2708 on : Tue September 10, 2013, 19:04:33
Wow, fastidious Pager Widget | Raxan Framework Thanks keep it up.
White Nike Air Max http://www.avcrp.org/data/en.php
Woolrich Coat
Posts: 2758
Comment
Marit582
Reply #2707 on : Tue September 10, 2013, 19:34:34
Hi colleagues, you are sharing your opinion regarding web site, I am also new user of web, so I am also getting more from it. Thanks to the whole thing.
Woolrich Coat http://mashupscene.com/
womens nike free
Posts: 2758
Comment
Verily280
Reply #2706 on : Wed September 11, 2013, 01:58:12
This article Pager Widget | Raxan Framework provides clear idea in favor of the new viewers of blogging, that genuinely how to do running a blog.
womens nike free http://www.kreweofcork.com/gallery1/en.php
Oakley Sunglasses
Posts: 2758
Comment
Joystick999
Reply #2705 on : Wed September 11, 2013, 03:13:06
Your method of telling everything in this piece of writing Pager Widget | Raxan Framework is really fastidious, every one be capable of without difficulty be aware of it, Thanks a lot.
Oakley Sunglasses http://www.mbtdivers.com/_themes/_vti_cnf/en.php
Woolrich Vest
Posts: 2758
Comment
Website28
Reply #2704 on : Wed September 11, 2013, 05:47:06
Hello everyone, it my first go to see at this website, and piece of writingis truly fruitful in favor of me, keep up posting these types of posts.
Woolrich Vest http://mashupscene.com/
Nike Free Sale
Posts: 2758
Comment
Unity488
Reply #2703 on : Wed September 11, 2013, 07:44:16
These are genuinely enormous ideas in concerning blogging Pager Widget | Raxan Framework . You have touched some nice things here. Any way keep up wrinting.
Nike Free Sale http://www.archergroupconsulting.com/about.html
louis vuitton outlet online
Posts: 2758
Comment
Phusion906
Reply #2702 on : Wed September 11, 2013, 10:42:36
Wow! It is also fastidious post on the topic of JavaScript, I am truly keen of learning JavaScript. thanks admin
louis vuitton outlet online http://www.dlavie.com/
nike free run girls shoes
Posts: 2758
Comment
Zygote676
Reply #2701 on : Thu September 12, 2013, 11:09:51
If you are going to watch comic videos on the net then I suggest you to pay a visit this web page, itconsists of actually thus comic not only videos but also other material.
nike free run girls shoes http://www.kreweofcork.com/gallery1/en.php
¥ë¥¤¥ô¥£¥È¥ó
Posts: 2758
Comment
Regalia332
Reply #2700 on : Thu September 12, 2013, 18:28:40
There is also one more method to increase traffic in support of your blogthat is link exchange, so you also try it
¥ë¥¤¥ô¥£¥È¥ó http://www.jinjou.com/
First | Previous | Showing comments 21 to 30 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.