[ 2 posts ]

upk0000

  • Username: upk_0000
  • Joined: Tue Jun 21, 2011 1:09 pm
  • Posts: 2
  • GitHub: upk_0000
  • Gists: upk_0000
  • Offline
  • Profile
Tags:

Quick Edit is not working with YUI3

Post Posted: Wed Jun 22, 2011 4:33 pm
+0-
hi,

i am using quick edit from yui 3 and i changed my table configuration as mentioned in the example and i am running in to pronblems. my code is below

<script type="text/javascript">
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2011.06.15-19-18'
}).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,]' }
}
}
];

// Columns must match data parameter names
var data = [
{title:"commander of chief1", year:"19801", quantity:"101"},
{title:"commander of chief2", year:"19801", quantity:"102"},
{title:"commander of chief2", year:"19803", quantity:"103"}
];

var table = new Y.DataTable.Base({columnset: cols, recordset: data});
table.plug(Y.Plugin.DataTableQuickEdit, {changesAlwaysInclude: ['id']});

table.render();

});
</script>


is there any other configuration i need to do to see the change , any suggestions ? pplease advice

thanks

John Lindal

YUI Contributor

  • Username: jafl
  • Joined: Mon Nov 02, 2009 2:33 pm
  • Posts: 352
  • Location: Los Angeles, CA
  • Twitter: jafl5272
  • GitHub: jafl
  • Gists: jafl
  • Offline
  • Profile

Re: Quick Edit is not working with YUI3

Post Posted: Tue Jul 05, 2011 7:24 am
+0-
See my reply to your other post.
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum