upgraded to yui 0.12.0

upgraded to yui-ext 0.33 rc2
This commit is contained in:
JT Smith 2006-11-28 02:23:34 +00:00
parent 62b3d90db7
commit cfd09a5cb6
1271 changed files with 539033 additions and 0 deletions

View file

@ -0,0 +1,28 @@
var XmlExample = {
init : function(){
var schema = {
tagName: 'Item',
id: 'ASIN',
fields: ['Author', 'Title', 'Manufacturer', 'ProductGroup']
};
dataModel = new YAHOO.ext.grid.XMLDataModel(schema);
// the DefaultColumnModel expects this blob to define columns. It can be extended to provide
// custom or reusable ColumnModels
var colModel = new YAHOO.ext.grid.DefaultColumnModel([
{header: "Author", width: 120, sortable: true},
{header: "Title", width: 180, sortable: true},
{header: "Manufacturer", width: 115, sortable: true},
{header: "Product Group", width: 100, sortable: true}
]);
// create the Grid
var grid = new YAHOO.ext.grid.Grid('example-grid', dataModel, colModel);
grid.autoWidth = true;
grid.autoHeight = true;
grid.render();
dataModel.load('/blog/examples/sheldon.xml');
}
}
YAHOO.ext.EventManager.onDocumentReady(XmlExample.init, XmlExample, true);