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:07:59 -08:00 committed by apache
parent e92b3b7d1b
commit 265c6b61a6
1 changed files with 5 additions and 5 deletions

View File

@ -47,13 +47,13 @@ After everything is compiled and installed, it is time to use the modules in nod
The default node.js files installed by efl/elm stay in prefix /lib path (if you don't define a prefix path is ''/usr/local/lib'')
Node.js need know where find efl/elm node modules, to that export NODE_PATH with the file path to modules.
Node.js needs to know where find efl/elm node modules, to that export NODE_PATH with the file path to modules.
<code bash>
export NODE_PATH=/usr/local/lib #if necessary replace with your prefix path
</code>
Now you are ready to use the modules in node.js, use ''require'' to import modules
Now you are ready to use the modules in node.js, use ''require'' to import the modules
<code javascript>
~$ node
@ -72,7 +72,7 @@ Import Elementary module
elm = require('elm');
</code>
Create a new Window with //auto hide// (the window is hide automatic when close is pressed):
Create a new Window with //auto hide// (the window is automatically hidden when close is pressed):
<code javascript>
win = new elm.Elm.WinStandard(null);
win.setTitle("Hello, World!");
@ -98,7 +98,7 @@ The method ''on'' is used to register callback on events, in this case we need c
btn.on('clicked', function () { console.log('clicked'); } );
</code>
To finish is needy show all elements, for that use ''setVisible(true)''
To finish, is necessary show all elements, for that use ''setVisible(true)''
<code javascript>
btn.setVisible(true);
win.setSize(240, 60);
@ -137,7 +137,7 @@ user_acount = 'EnlightenmentKo'
icon_array = new Array();
</code>
Create a new Window (has previous example):
Create a new Window (it has previous example):
<code javascript>
win = new elm.Elm.WinStandard(null);
win.setTitle("Twitter App");