• Register
  • Log In
  • Home
  • Quick Start
    • Configurator
    • Download YUI 3
  • Documentation
    • User Guides
    • Examples
    • API Docs
    • Environments
    • Tutorials
  • Community
    • Gallery
    • Blog
    • Forums
    • YUI Theater
    • Calendar
  • Contribute
    • YUI on GitHub »
    • File a Ticket
    • View Tickets
    • Dashboard
  • Other Projects
    • Shifter »
    • Yogi »
    • YUI 2
    • YUI Doc »
    • YUI Test
    • YUI Website
    • YUI Compressor »
    • YUI Builder »
    • YUI PHP Loader
    • Grid Builder »
    • Skin Builder »
  • YUI
  • >
  • Community
  • >
  • Gallery

Gallery

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • Yogi Documentation
  • Shifter Documentation
  • Developer Guide
  • Module Setup

Tag Cloud

Context Navigation

    Build Tag: gallery-2012.05.23-19-56

    Return to Paginator Port

    YUI({
        //Last Gallery Build of this module
        gallery: 'gallery-2012.09.26-20-36'
    }).use('gallery-paginator', function(Y)
    {
    	function update(
    		/* object */	state)
    	{
    		this.setPage(state.page, true);
    		this.setRowsPerPage(state.rowsPerPage, true);
    	}
     
    	var p1 = new Y.Paginator(
    	{
    		totalRecords: 25,
    		rowsPerPage:5
    	});
    	p1.on('changeRequest', update, p);
    	p1.render('#pg1');
     
    	var p2 = new Y.Paginator(
    	{
    		totalRecords: 25,
    		rowsPerPage:5,
    		template: '{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {ItemRangeDropdown} {NextPageLink} {LastPageLink}',
    		firstPageLinkLabel:    '|<',
    		previousPageLinkLabel: '<',
    		nextPageLinkLabel:     '>',
    		lastPageLinkLabel:     '>|'
    	});
    	p2.on('changeRequest', update, p);
    	p2.render('#pg2');
     
    });

    Build Output

    /home/y/libexec/ant/bin/ant all
    Buildfile: build.xml
         [echo] Starting Build For gallery-paginator
    
    clean:
    
    init:
        [mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-paginator/build_tmp
         [echo] Starting Build For gallery-paginator
    
    -lint-server:
         [echo] Starting Build For gallery-paginator
    
    -node:
         [echo] For faster builds, install Node.js.
    
    -concatdebug:
         [copy] Copying 11 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-paginator/build_tmp/ant
       [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-paginator/build_tmp/ant
    
    -registerdebug:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-paginator/build_tmp
    
    -prependdebug:
    
    -appenddebug:
    
    builddebug:
    
    -createcore:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-paginator/build_tmp
    
    -loggerregex:
    
    buildcore:
    
    -rollupjs:
    
    -concatskins:
         [copy] Copying 2 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-paginator/build_tmp/ant
       [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-paginator/build_tmp/ant
    [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-paginator/build_tmp/assets/skins/sam/gallery-paginator.css
    [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-paginator/build_tmp/assets/skins/sam/gallery-paginator.css
    
    -buildskins:
    
    -rollupcss:
    
    buildskins:
    
    -buildlangs:
    
    -rolluplangs:
    
    buildlangs:
    
    build:
    
    minify:
    [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-paginator/build_tmp/gallery-paginator.js
    [yuicompressor] 
    [yuicompressor] [WARNING] Invalid hint syntax: use strict
    [yuicompressor] add("gallery-paginator",function(Y){ ---> "use strict" <--- ;functionPaginator(config){Paginator.superclass
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] =this.paginator.getCurrentPage(); ---> var  <--- count=this.paginator.getTotalPages();
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] =this.paginator.getTotalPages(); ---> var  <--- size=this.paginator.getRowsPerPage();
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] =this.paginator.getRowsPerPage(); ---> var  <--- recs=this.paginator.getTotalRecords();
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] prev_page_size||recs!=this.prev_rec_count){ ---> var  <--- options=Y.Node.getDOMNode(this.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ;options.length=0;for( ---> var  <--- i=1;i<=count;i++
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ;i<=count;i++){ ---> var  <--- range=this.paginator.getPageRecords(i)
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ||!currentPage||e.rebuild){ ---> var  <--- labelBuilder=p.get("pageLabelBuilder"),range
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] =this.paginator.getCurrentPage(); ---> var  <--- curr_markup='{label}';var link_markup='{label}';var 
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] getCurrentPage();var curr_markup='{label}'; ---> var  <--- link_markup='{label}';var dis_markup='{label}';if
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] curr_markup='{label}';var link_markup='{label}'; ---> var  <--- dis_markup='{label}';if(this.current!==
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ||!currentPage||e.rebuild){ ---> var  <--- linkClass=this.paginator.get("pageLinkClass")
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] this.paginator.get("disabled"); ---> var  <--- range=Paginator.ui.PageLinks.calculateRange(
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] .paginator.get("pageLinks")); ---> var  <--- content="";for(var i=range
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] );var content="";for( ---> var  <--- i=range[0];i<=range
    [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-paginator/build_tmp/gallery-paginator-min.js
    
    lint:
         [echo] Using Rhino. Install nodejs to improve jslint speed, or skip with -Dlint.skip=true
         [java] Running JSLint on : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-paginator/build_tmp/gallery-paginator.js
         [java] - OK
    
    local:
    
    deploybuild:
         [copy] Copying 3 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-paginator
    
    deployassets:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-paginator/assets
    
    deployskins:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-paginator/assets/skins/sam
         [copy] Copying 3 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-paginator/assets/skins/sam
    
    deploylang:
    
    deploydocs:
    
    deploy:
    
    all:
    
    BUILD SUCCESSFUL
    Total time: 4 seconds

    © 2006-2013 Yahoo! Inc. All rights reserved.
    All code on this site is licensed under the BSD License unless stated otherwise.
    About This Site · Security Contact Info