Skip to content
angelozerr edited this page Mar 1, 2015 · 14 revisions

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.

YUI#use

Here completion for YUI#use :

YUI().us

Completion for YUI use

Note that you can use AUI too :

AUI().us

Completion for AUI use

YUI Class

Here completion for YUI Classes like AceEditor :

YUI().use("aui-ace-editor", function(Y) {
	new Y.
})

Completion for YUI Class AceEditor

You can notice that YUI completion provides in the second popup documentation and a link to the online documentation.

YUI Methods/Properties Class

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.

Completion for methods/properties of AceEditor

YUI Attributes Class

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.

Completion for attributes of AceEditor

YUI Node

Event

You can benefit with Event completion for parameter of function which are an event callback:

Completion for Function Event

Clone this wiki locally