博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
extjs4的Ext.Class的alias Config options
阅读量:4165 次
发布时间:2019-05-26

本文共 719 字,大约阅读时间需要 2 分钟。

译自:http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.Class

 :  []

List of short aliases for class names. Most useful for defining xtypes for widgets:

('MyApp.CoolPanel', {
extend: '', alias: ['widget.coolpanel'], title: 'Yeah!'});// Using ('widget.coolpanel');// Using the shorthand for defining widgets by xtype('panel', {
items: [ {
xtype: 'coolpanel', html: 'Foo'}, {
xtype: 'coolpanel', html: 'Bar'} ]});

Besides "widget" for xtype there are alias namespaces like "feature" for ftype and "plugin" for ptype.

Available since: 4.0.2

此处,

alias: ['widget.coolpanel'],
则可以通过以下方式访问(创建):

var panel = Ext.widget('coolpanel');

另外,widget为xtype而定义feature为ftype而定义;plugin为ptype而定义。

转载地址:http://bpmxi.baihongyu.com/

你可能感兴趣的文章
Flex4中获取任意组件的ID或其他属性值
查看>>
Flex4中获取任意组件的ID或其他属性值
查看>>
Flex4中获取任意组件的ID或其他属性值
查看>>
flex 设置背景图片
查看>>
Flex 4中组件背景设置(填充方式)group为例子
查看>>
Setting a background image on a Spark Application in Flex 4
查看>>
flash 遍历sprite
查看>>
loaderInfo 和 contentLoaderInfo 的区别
查看>>
flash 声音设置
查看>>
as2全局变量等
查看>>
as3.0中通过ApplicationDomain类获得被加载swf
查看>>
主swf与被加载swf的通信问题
查看>>
在flash中关闭页面(在flash中执行javascript脚本)
查看>>
flash as3输出并执行javascript
查看>>
flash 控制声音的播放和停止
查看>>
flash在android上的延迟可能的解决方案
查看>>
flash as3设置全屏
查看>>
八款开源Android游戏引擎
查看>>
Android MediaPlayer基本使用方式
查看>>
android 获取坐标
查看>>