-
Notifications
You must be signed in to change notification settings - Fork 1
Features
This section shows features of the AlloyUI 2.0.x tern plugin. Here AlloyUI 2.0.x tern plugin is executed inside Eclipse IDE with tern.java but this plugin can be used with Browser, Emcas, Vim, Sublime Text.
Here completion for YUI#use :
YUI().us
Note that you can use AUI too :
AUI().us
Here completion for YUI Classes like AceEditor :
YUI().use("aui-ace-editor", function(Y) {
new Y.
})
You can notice that YUI completion provides in the second popup documentation and a link to the online documentation.
AceEditor extends YUI3 Widget
In the following sample :
YUI().use("aui-ace-editor", function(A) {
new A.AceEditor({
}). // here Ctrl+Space shows methods/properties like render, etc
You can see for instance :
-
getSelection
method coming from AlloyUI 2.0.x. -
getSkinName
method coming from YUI3.
In the following sample :
YUI().use("aui-ace-editor", function(A) {
new A.AceEditor({
// here Ctrl+Space shows attributes like useSoftTabs, etc
})
You can see for instance :
-
highlightActiveLine
property coming from AlloyUI 2.0.x. -
boudingBox
method coming from YUI3.
YUI and AlloyUI tern plugins supports now completion and validation for both modules (eg : aui-tree
) and submodules (eg : aui-tree-data
) :
- Completion for available modules :
- Completion for available submodules :
You can validate module with tern-lint :
You can benefit with Event completion for parameter of function which are an event callback: