• 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.10.31-20-00

    Return to QuickEdit for DataTable

    YUI({
        //Last Gallery Build of this module
        gallery: 'gallery-2013.04.03-19-53'
    }).use('gallery-quickedit', function(Y) {
     
    	var cols = [
    		{ key: 'title', label: 'Title', quickEdit: true },
    		{ key: 'year', label: 'Year' },
    		{ key: 'quantity', label: 'Quantity',
    			quickEdit: {
    				validation: { css: 'yiv-required yiv-integer:[0,]' }
    			}
    		}
    	];
     
    	var table = new Y.DataTable.Base({columnset: cols});
    	table.plug(Y.Plugin.DataTableDataSource, {datasource: ds});
    	table.plug(Y.Plugin.DataTableQuickEdit, {changesAlwaysInclude: ['id']});
     
    	table.render("#table");
     
    });

    Build Output

    /home/y/libexec/ant/bin/ant all
    Buildfile: build.xml
         [echo] Starting Build For gallery-quickedit
    
    clean:
    
    init:
        [mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-quickedit/build_tmp
         [echo] Starting Build For gallery-quickedit
    
    -lint-server:
         [echo] Starting Build For gallery-quickedit
    
    -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-quickedit/build_tmp/ant
       [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-quickedit/build_tmp/ant
    
    -registerdebug:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-quickedit/build_tmp
    
    -prependdebug:
    
    -appenddebug:
    
    builddebug:
    
    -createcore:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-quickedit/build_tmp
    
    -loggerregex:
    
    buildcore:
    
    -rollupjs:
    
    -concatskins:
         [copy] Copying 2 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-quickedit/build_tmp/ant
       [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-quickedit/build_tmp/ant
    [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-quickedit/build_tmp/assets/skins/sam/gallery-quickedit.css
    [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-quickedit/build_tmp/assets/skins/sam/gallery-quickedit.css
    
    -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-quickedit/build_tmp/gallery-quickedit.js
         [move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-quickedit/build_tmp
         [move] Moving 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-quickedit/build_tmp
    
    minify:
    [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-quickedit/build_tmp/gallery-quickedit.js
    [yuicompressor] 
    [yuicompressor] [WARNING] Invalid hint syntax: use strict
    [yuicompressor] add("gallery-quickedit",function(Y){ ---> "use strict" <--- ;functionQuickEdit(config){QuickEdit.superclass
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] =''+"{cd}"+QuickEdit.error_display_markup; ---> var  <--- qe=o.column.quickEdit;returnY
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] =''+"{cd}"+QuickEdit.error_display_markup; ---> var  <--- qe=o.column.quickEdit;returnY
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] e.currentTarget.ancestor(".yui3-datatable-cell"); ---> var  <--- field=cell.one(".quickedit-field");if
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] if(!field){return;} ---> var  <--- value=Y.Lang.trim(field.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] :"below");if(cell){ ---> var  <--- input=cell.one(".quickedit-field");if
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ("host").get("columns"); ---> var  <--- map={};functionaccumulate(list,
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] host=this.get("host"); ---> var  <--- status=true;var count=list.size
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ("host");var status=true; ---> var  <--- count=list.size();for(
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] =list.size();for( ---> var  <--- i=0;i var  <--- e=list.item(i);var 
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] e=list.item(i); ---> var  <--- qe=this.column_map[this._getColumnKey(
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] if(!qe){continue;} ---> var  <--- msg_list=qe.validation?qe.validation.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ?qe.validation.msg:null; ---> var  <--- info=Y.FormManager.validateFromCSSData(e,
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] after("columnsChange",parseColumns,this); ---> var  <--- h=this.afterHostEvent("render",function(
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] this.saveFmt={};for( ---> var  <--- i=0;i var  <--- col=this.column_list[i];var 
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] col=this.column_list[i]; ---> var  <--- key=col.key;this.saveSort.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] sortable);col.sortable=false; ---> var  <--- qe=col.quickEdit;var qef=col
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] false;var qe=col.quickEdit; ---> var  <--- qef=col.qeFormatter;if(!col.hidden &&(
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] (!col.hidden &&(qe||qef)){ ---> var  <--- fn=null;if(qe&&Y.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] col.allowHTML=true;}}} ---> var  <--- container=host.get("contentBox");container
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] .column_list.length;i++){ ---> var  <--- col=this.column_list[i];col
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ,this);delete this.saveFmt; ---> var  <--- host=this.get("host");var 
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] host=this.get("host"); ---> var  <--- container=host.get("contentBox");container
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] include_all=this.get("includeAllRowsInChanges"); ---> var  <--- host=this.get("host");var 
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] host=this.get("host"); ---> var  <--- rows=host._tbodyNode.get("children")
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] (i).all(".quickedit-field"); ---> var  <--- change={},changed=false;var 
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] change={},changed=false; ---> var  <--- field_count=list.size();for(
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] =list.size();for( ---> var  <--- j=0;j var  <--- field=list.item(j);var 
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] field=list.item(j); ---> var  <--- key=this._getColumnKey(field);var 
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] key=this._getColumnKey(field); ---> var  <--- qe=this.column_map[key].quickEdit
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] this.column_map[key].quickEdit; ---> var  <--- prev=rec.get(key);var 
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] prev=rec.get(key); ---> var  <--- val=Y.Lang.trim(field.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] if(changed||include_all){for( ---> var  <--- j=0;j j <--- =0;j var  <--- key=always_include[j];change[key
    [yuicompressor] 
    [yuicompressor] [WARNING] The variable key has already been declared in the same scope...
    [yuicompressor] always_include.length;j++){var  ---> key <--- =always_include[j];change[key]
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] clearMessages();var status=true; ---> var  <--- host=this.get("host");var 
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] host=this.get("host"); ---> var  <--- e1=host._tbodyNode.getElementsByTagName("input")
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] host._tbodyNode.getElementsByTagName("input"); ---> var  <--- e2=host._tbodyNode.getElementsByTagName("textarea")
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] host._tbodyNode.getElementsByTagName("textarea"); ---> var  <--- e3=host._tbodyNode.getElementsByTagName("select")
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] );this.hasMessages=true;} ---> var  <--- cell=e.getAncestorByTagName("td");if
    [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-quickedit/build_tmp/gallery-quickedit-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-quickedit/build_tmp/gallery-quickedit.js
         [java]  
         [java] 
         [java] 	652, 27: 'j' is already defined.
         [java] 	for (var j=0; j

    © 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