javascript Ext.grid.Panel xtype ExtJs 4
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9750668/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Ext.grid.Panel xtype ExtJs 4
提问by dev
What's the xtype of Ext.grid.Panel. Also please tell me how can i find the xtype of any class.
Ext.grid.Panel 的 xtype 是什么。另外请告诉我如何找到任何类的 xtype。
Thanks
谢谢
回答by Sérgio Michels
You can see the xtype in the online documentation, it appears with the name of the class in the title. In your case Ext.grid.panel use the xtype gridpanel
.
您可以在在线文档中看到 xtype ,它在标题中带有类的名称。在您的情况下 Ext.grid.panel 使用 xtype gridpanel
。
回答by Sasha Brocato
You can also call the getXType()
method on any Extjs 4
component. This will return the string that represents the component xtype
.
您还可以getXType()
在任何Extjs 4
组件上调用该方法。这将返回代表组件的字符串xtype
。