Eamon Brosnan![]()
The tr node inside the thead section of datatable has a bogus id. The id attribute is
not supplied to the template upon creation, and so the TR receives an id of "{id}".
The "{id}" token is due to the default behaviour of substitute. In this patch the id is generated using
Y.guid().
You don't need to change your code at all to use this patch. Just include the module in your YUI().use() statement.
YUI().use('gallery-user-patch-2530026', function(Y) {
var mockresponse = {
response: {
results: [
{ "id" : "1", "name" : "Joe" },
{ "id" : "2", "name" : "Andrew" }
]
}
};
var dt = new Y.DataTable.Base({
columnset : [
{ key:"id", sortable: true },
{ key:"name", sortable: true }
],
summary : "User patched DataTable Instance",
recordset : mockresponse.response.results
});
dt.render('#example');
});
© 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