The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
Return to State Preservation for DataTable
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.05.23-19-56'
}).use('gallery-datatable-state', function(Y)
{
var cols =
[
{ key: 'select', label: ' ',
nodeFormatter: function(o)
{
o.cell.set('innerHTML', '<input type="checkbox" />');
}
},
{ key: 'title', label: 'Title' },
{ key: 'year', label: 'Year' },
{ key: 'quantity', label: 'Quantity',
nodeFormatter: function(o)
{
new Y.Dial(
{
min: 0,
max: 50,
stepsPerRevolution: 50,
value: o.value
})
.render(o.cell);
}
},
{ key: 'notes', label: 'Notes',
nodeFormatter: function(o)
{
o.cell.set('innerHTML', '<textarea>
/home/y/libexec/ant/bin/ant all Buildfile: build.xml [echo] Starting Build For gallery-datatable-state clean: init: [mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-state/build_tmp [echo] Starting Build For gallery-datatable-state -lint-server: [echo] Starting Build For gallery-datatable-state -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-state/build_tmp/ant [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-state/build_tmp/ant -registerdebug: [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-state/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-state/build_tmp -loggerregex: buildcore: -rollupjs: -concatskins: -buildskins: -rollupcss: buildskins: -buildlangs: -rolluplangs: buildlangs: build: minify: [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-state/build_tmp/gallery-datatable-state.js [yuicompressor] [yuicompressor] [WARNING] Invalid hint syntax: use strict [yuicompressor] add("gallery-datatable-state",function(Y){ ---> "use strict" <--- ;functionState(config){State.superclass [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] host=this.get("host"); ---> var <--- count=host.data.size(); [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] =host.data.size(); ---> var <--- id_key=this.get("uniqueIdKey");Y [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] ;i var <--- value=null;var cell=host.getCell [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] i++){var value=null; ---> var <--- cell=host.getCell([i,item [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] ){if(item.node){ ---> var <--- node=cell.one(item.node) [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] else{if(item.widget){ ---> var <--- widget=Y.Widget.getByNode(cell. [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] item.key);}}}} ---> var <--- rec=host.getRecord(i);var [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] rec=host.getRecord(i); ---> var <--- id=rec.get(id_key);if [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] host=this.get("host"); ---> var <--- count=host.data.size(); [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] =host.data.size(); ---> var <--- id_key=this.get("uniqueIdKey");Y [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] ;i var <--- rec=host.getRecord(i);var [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] rec=host.getRecord(i); ---> var <--- state=this.state[rec.get( [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] id_key)];if(state){ ---> var <--- value=state[item.column];var [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] value=state[item.column]; ---> var <--- cell=host.getCell([i,item [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] ){if(item.node){ ---> var <--- node=cell.one(item.node) [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] else{if(item.widget){ ---> var <--- widget=Y.Widget.getByNode(cell. [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] host=this.get("host"); ---> var <--- self=this;var orig_syncUI=this.orig_syncUI [yuicompressor] [yuicompressor] [WARNING] Try to use a single 'var' statement per scope. [yuicompressor] ("host");var self=this; ---> var <--- orig_syncUI=this.orig_syncUI=host.syncUI; [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-datatable-state/build_tmp/gallery-datatable-state-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-state/build_tmp/gallery-datatable-state.js [java] [java] [java] 239, 59: Missing semicolon. [java] listenToPaginator.call(this, config.paginator) [java] [java] 264, 10: Missing semicolon. [java] } [java] [java] [java] local: deploybuild: [copy] Copying 3 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-datatable-state deployassets: deployskins: deploylang: deploydocs: deploy: all: BUILD SUCCESSFUL Total time: 2 seconds
All code on this site is licensed under the BSD License unless stated otherwise.