Wiki page javascript_tutorial changed with summary [] by Larry de Oliveira Lira Junior

This commit is contained in:
Larry de Oliveira Lira Junior 2015-12-11 08:22:21 -08:00 committed by apache
parent 265c6b61a6
commit 965abd6cf9
1 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ box.packEnd(list);
list.setVisible(true);
</code>
Get twitter user timeline asynchronous, using callback
Getting twitter user timeline asynchronous, using callback
<code javascript>
twit.get('statuses/user_timeline', {screen_name: user_acount, count:10},
function(error, tweets, response) {
@ -174,7 +174,7 @@ Make a new file stream with ''fs.createWriteStream'', download the image to file
}
</code>
For each tweet we make a new Elm.Layout and set a theme using ''setfile'', ''setText'' is used to define a new text to Edje elements in theme. To have a formatted text we used Elm.Entry to main tweet text and added this widget into theme using ''setContent'' layout method
For each tweet we make a new Elm.Layout and set a theme using ''setfile'', ''setText'' is used to define a new text to Edje elements in theme. To have a formatted text we use Elm.Entry to main tweet text and add this widget into theme using ''setContent'' layout method
<code javascript>
for(i=0; i < tweets.length; i++){
var layout = new elm.Elm.Layout(win);
@ -188,7 +188,7 @@ For each tweet we make a new Elm.Layout and set a theme using ''setfile'', ''set
layout.contentSet("tweet_text", entry);
</code>
Add a layout widget to Elm.List and call ''list.go()'' start to display the list properly.
Add a layout widget to Elm.List and call ''list.go()'' to start displaying the list properly.
<code javascript>
item = list.itemAppend("", layout, null, null, null);
}