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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 07:43:03  来源:igfitidea点击:

Ext.grid.Panel xtype ExtJs 4

javascriptextjsextjs4

提问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 4component. This will return the string that represents the component xtype.

您还可以getXType()在任何Extjs 4组件上调用该方法。这将返回代表组件的字符串xtype