只需在Ext JS中创建一个工具栏

时间:2013-08-23 17:38:23

标签: class extjs toolbar

所以我有一个面板,其中包含在dockedItems配置中创建的顶部和底部工具栏:

dockedItems: [
    Ext.create('AM.view.TopToolbar',{}), //  //This line alone breaks the app
    { //Toolbars
        xtype: 'toolbar',
        dock: 'bottom',
        items: [
            { text: 'About', itemId: 'about' },
            '-',
            { text: 'Legal', itemId: 'legal' },
            ...

代码在FF中工作正常,但在IE9中中断。我认为它与我的create语句的语法有关,但我在论坛上找不到解决方案。

这是我的TopToolbar类:

Ext.define('AM.view.TopToolbar', {
    extend: 'Ext.toolbar.Toolbar',
    alias: 'widget.toptoolbar',
    defaults: { arrowCls: '' }, //Removing black arrow from toolbar items
    items: [
        { text : 'Tools', 
            menu : {
                items: [
                //rest of my toolbar items and menus

所有文件结构都正确且有效。

命名空间是'AM'

Internet Explorer中的应用程序中断 - 尚未在Chrome或Safari中尝试

我收到此错误

: SCRIPT16389: Unspecified error. 
ext-all.js, line 38 character 51878

有什么想法吗?

干杯!

0 个答案:

没有答案
相关问题