Created
January 11, 2011 19:34
-
-
Save jacobandresen/774973 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.onReady(function(){ | |
var ds = new Ext.data.Store({ | |
proxy: new Ext.data.ScriptTagProxy({ | |
url: "https://api.meetup.com/topics.json/?key=14105b6310651261633e2e1715346562" | |
}), | |
baseParams:{"search":"Javascript"}, | |
reader: new Ext.data.JsonReader({ | |
root: 'results' | |
}, | |
['id', 'name', 'link'] | |
) | |
}); | |
var grid = new Ext.grid.GridPanel({ | |
store: ds, | |
columns: [ | |
{head: "id", width:20, dataIndex:'id'}, | |
{head: "name", width:100, dataIndex:'name'}, | |
{head: "link", width:200, dataIndex:'link'} | |
], | |
applyTo: Ext.getBody(), | |
title: 'meetup topics', | |
height: 700, | |
autoScroll: true, | |
}); | |
ds.load(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment