• 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.09.05-20-01

    Return to DataTable Paginator

    YUI({
        //Last Gallery Build of this module
        gallery: 'gallery-2013.01.16-21-05'
    }).use('gallery-datatable-paginator','gallery-paginator-view', function(Y) {
     
    //
    // Basic Paginator Example
    //
        var dtableB = new Y.DataTable({
            columns:    cols,
            data:       jsRandom500,
            scrollable: 'y',
            height:     '200px',
     
            paginator: new Y.PaginatorView({
                model:              new Y.PaginatorModel({ page:3, itemsPerPage:50 }),
                container:         '#pagContainerBar',
                paginatorTemplate:  Y.one('#tmpl-bar').getHTML(),
                pageOptions:        [ 10, 25, 50, 100, 'All' ]
            }),
     
           paginatorResize:    true,
           paginationSource:  'client'  // client-side pagination
     
        });
     
     
    });

    Build Output

    /home/y/libexec/ant/bin/ant all
    Buildfile: build.xml
         [echo] Starting Build For gallery-datatable-paginator
    
    clean:
    
    init:
        [mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-paginator/build_tmp
         [echo] Starting Build For gallery-datatable-paginator
    
    -lint-server:
         [echo] Starting Build For gallery-datatable-paginator
    
    -node:
         [echo] For faster builds, install Node.js.
    
    -concatdebug:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-paginator/build_tmp/ant
       [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-paginator/build_tmp/ant
    
    -registerdebug:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-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-datatable-paginator/build_tmp
    
    -loggerregex:
    
    buildcore:
    
    -rollupjs:
    
    -concatskins:
    
    -buildskins:
    
    -rollupcss:
    
    buildskins:
    
    -buildlangs:
    
    -rolluplangs:
    
    buildlangs:
    
    build:
    
    build-coverage:
         [echo] Creating coverage file for: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-paginator/build_tmp/gallery-datatable-paginator.js
         [move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-paginator/build_tmp
         [move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-paginator/build_tmp
    
    minify:
    [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-paginator/build_tmp/gallery-datatable-paginator.js
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] rpp=pagm.get("itemsPerPage"); ---> var  <--- istart,iend,nitem;if(pag_state)
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] if(this._pagDataSrc!=="local"){ ---> var  <--- url_obj={},prop_istart=this._srvPagMapObj
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] (this._pagDataSrc){case"ds": ---> var  <--- rqst_str=this.get("requestStringTemplate")||""
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] load(url_obj);break;default: ---> var  <--- data_new=rdata.slice(istart,iend)
    [yuicompressor] 
    [yuicompressor] [WARNING] The symbol prop_nitems is declared but is apparently never used.
    [yuicompressor] This code can probably be written in a more compact way.
    [yuicompressor] prop_istart=this._srvPagMapObj("itemIndexStart"), ---> prop_nitems <--- =this._srvPagMapObj("totalItems"),prop_ipp=
    [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-paginator/build_tmp/gallery-datatable-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-datatable-paginator/build_tmp/gallery-datatable-paginator.js
         [java]  
         [java] 
         [java] 	22, 12: Mixed spaces and tabs.
         [java] 	model: 		new PaginatorModel({itemsPerPage:50, page:3}),
         [java] 
         [java] 	263, 17: Expected '{' and instead saw 'this'.
         [java] 	this._setLocalData();
         [java] 
         [java] 	348, 21: ['sortBy'] is better written in dot notation.
         [java] 	url_obj['sortBy']    = Y.JSON.stringify( this.get('sortBy') || {} ) || null;
         [java] 
         [java] 	354, 21: ['page'] is better written in dot notation.
         [java] 	url_obj['page']  = this.pagModel.get('page');
         [java] 
         [java] 	375, 53: 'url_obj' used out of scope.
         [java] 	request:    Y.Lang.sub(rqst_str,url_obj)
         [java] 
         [java] 	385, 32: 'url_obj' used out of scope.
         [java] 	this.data.load(url_obj);
         [java] 
         [java] 	412, 54: Expected '{' and instead saw 'return'.
         [java] 	if ( this.get('paginatorResize') !== true )  return;
         [java] 
         [java] 	471, 57: Expected '{' and instead saw 'rprop'.
         [java] 	if ( rprop && dir == 'to' && rprop.toServer )   rprop = rprop.toServer;
         [java] 
         [java] 	472, 57: Expected '{' and instead saw 'rprop'.
         [java] 	if ( rprop && dir != 'to' && rprop.fromServer ) rprop = rprop.fromServer;
         [java] 
         [java] 	487, 33: Expected '{' and instead saw 'this'.
         [java] 	if ( !this._pagDataSrc) this._dataChange({});
         [java] 
         [java] 	500, 33: Expected '{' and instead saw 'return'.
         [java] 	if ( this._pagDataSrc ) return;
         [java] 
         [java] 	503, 71: Expected '{' and instead saw 'this'.
         [java] 	if ( !this.datasource && this.data.url && !this._pagDataSrc ) this._pagDataSrc = 'mlist';
         [java] 
         [java] 	562, 61: ['totalItems'] is better written in dot notation.
         [java] 	totalItemProp = this.get('serverPaginationMap')['totalItems'] || null;
         [java] 
         [java] 	588, 61: ['totalItems'] is better written in dot notation.
         [java] 	var totalItemProp = this.get('serverPaginationMap')['totalItems'] || null;
         [java] 
         [java] 	621, 25: Expected '{' and instead saw 'return'.
         [java] 	if ( !tblCont ) return false;
         [java] 
         [java] 	697, 13: Expected '{' and instead saw 'delete'.
         [java] 	delete val.initialized;
         [java] 
         [java] 	699, 13: Expected '{' and instead saw 'this'.
         [java] 	this.set('sortBy',val.sortBy);
         [java] 
         [java] 	701, 30: Expected '{' and instead saw 'this'.
         [java] 	if ( this.pagModel ) this.pagModel.setAttrs(val);
         [java] 
         [java] 	716, 21: Expected '{' and instead saw 'return'.
         [java] 	if ( !val ) return;
         [java] 
         [java] 	733, 13: Expected '{' and instead saw 'this'.
         [java] 	this.resizePaginator();
         [java] 
         [java]  
         [java] 
    
    local:
    
    deploybuild:
         [copy] Copying 4 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-datatable-paginator
    
    deployassets:
    
    deployskins:
    
    deploylang:
    
    deploydocs:
    
    deploy:
    
    all:
    
    BUILD SUCCESSFUL
    Total time: 3 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