-
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.
Anim class extends Base which provides none methods/properties but which uses several classes like BaseCore, AttributeCore. The tern plugin is able to mix BaseCore, AttributeCore methods/properties in Base to provide for instance addAttr:
YUI and AlloyUI tern plugins supports now completion and validation for both modules (eg : aui-tree
) and submodules (eg : aui-tree-data
) :
You can validate module with tern-lint :
You can benefit with Event completion for parameter of function which are an event callback:
AlloyUI A.Node augments the YUI3 Node with more util methods. The tern plugin is able to mix YUI3 node with AlloyUI A.Node to provide for instance ancestorsByClassName:
Completion for Object literal for YUI config is available.
YUI instance config is supported :
YUI global config is supported :