Skip to content

Instantly share code, notes, and snippets.

@Pierry
Last active December 24, 2015 09:29
Show Gist options
  • Save Pierry/6777205 to your computer and use it in GitHub Desktop.
Save Pierry/6777205 to your computer and use it in GitHub Desktop.
Criar lista ul dinâmica
// Add DataSource code
var ds = new kendo.data.DataSource({
transport: {
read: {
url: "http://demos.kendoui.com/service/Twitter/Search",
dataType: "jsonp",
data: {
q: "kendoui"
}
}
},
schema: {
data: "statuses"
},
change: function(){
var tweets = this.view();
$.each(tweets, function(){
$("#twitter").append("<li>" + this.text + "</li>");
});
}
});
ds.read();
<!-- Tweets List -->
<ul id="twitter"></ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment