Last active
December 24, 2015 09:29
-
-
Save Pierry/6777205 to your computer and use it in GitHub Desktop.
Criar lista ul dinâmica
This file contains 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
// 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(); |
This file contains 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
<!-- Tweets List --> | |
<ul id="twitter"></ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment