Get help with Total.js and jComponent
TotalEdit knows the API of Total.js 5 and of jComponent 20. It completes it, explains it and has snippets of the usual code, with nothing to install.
Where it works
It turns on by itself when the folder open is a Total.js 5 project: total5 is in its package.json, or its index.js requires it.
| Files | Help |
|---|---|
| JavaScript files of the server | Total.js 5 |
HTML files, and the JavaScript and CSS files in a public folder | jComponent 20 |
The bar at the bottom says which one the file has, next to its language.
What it does
- Completes functions and what each call gives. After
DATA.find()and a dot, you getwhere,sortand the rest. - Explains a name when the pointer is on it: how to call it, what it does, its arguments and what it gives.
- Follows the arguments while you write a call, with the one that you are writing in bold. Esc hides it.
The snippets
They are among the completions. Write the start of the name, choose it, and fill in the parts: Tab goes to the next one.
| Where | Some of them |
|---|---|
| Server | NEWACTION, ROUTE API, ROUTE GET, ROUTE SOCKET, AUTH, MIDDLEWARE, plugin (server), DATA find, RESTBuilder |
| Interface | PLUGIN, COMPONENT, TAPI, exports.watch, exports.ajax, SETTER notify |
| HTML | ui-component, ui-plugin, ui-bind, ui-input, @{if}, @{foreach} |
Turn it on or off
In Settings, Help for Total.js 5 and jComponent 20 has three choices:
- In projects that use Total.js 5, the one at the start;
- Always, in any folder and also in single files;
- Never.
Colours, icons and identifiers such as UID() are in Insert colours, icons and values, and work in every project.