nene edited this page Mar 21, 2012 · 3 revisions

Synopsis:

@xtype name

Documents xtype of the class.

Example:

/**
 * @class Ext.grid.Panel
 * The grid of data.
 * @xtype grid
 */

Writing @xtype grid is shorthand for @alias widget.grid. See @alias for details.

Auto-detection

This tag is auto-detected when class comment is right above Ext.define which contains xtype:. The following code is equivalent of the above one:

/**
 * The grid of data.
 */
Ext.define("Ext.grid.Panel", {
    xtype: "grid",
});

Otherwise the auto-detection behaves just like with @alternateClassName tag.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.