Results 1 to 5 of 5

Thread: Error with PanelCollapsedTitle plugin.

  1. #1
    Sencha User
    Join Date
    Feb 2010
    Location
    Montral, QC
    Posts
    12

    Question Error with PanelCollapsedTitle plugin.

    I try to use the PanelCollapsedTitle plugin see in that thread : http://www.sencha.com/forum/showthre...CollapsedTitle

    When I put this code 'plugins: [Ext.ux.PanelCollapsedTitle]' in my ui.js file, it's work great. But when I try to use that code im my js File :

    this.plugins = [this.initPlugin(new Ext.ux.PanelCollapsedTitle({
    }))
    ];

    I have this message in Firebug :

    uncaught exception: [Exception... "Cannot convert WrappedNative to function" nsresult: "0x8057000d (NS_ERROR_XPC_CANT_CONVERT_WN_TO_FUN)" location: "JS frame :: file:///C:/xampp/htdocs/test/Ext.ux.PanelCollapsedTitle/MyWindow.js :: anonymous :: line 24" data: no]

    Can you help me, I do not understand why

    Thank you,

    6Sigma

  2. #2
    Sencha User jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747

    Default

    Hi 6Sigma,

    In your .js file, are you doing the plugin code after superclass.initComponent is called?

  3. #3
    Sencha User
    Join Date
    Feb 2010
    Location
    Montral, QC
    Posts
    12

    Default

    Yes, I'am doing plugin code after superclass.initComponent.
    It is a simple test with one Window and two Panels :
    Code:
    MyWindow = Ext.extend(MyWindowUi, {
        initComponent: function() {
            MyWindow.superclass.initComponent.call(this);
    		
    		this.westPanel.plugins = [
    			this.westPanel.initPlugin(new Ext.ux.PanelCollapsedTitle({
    		}))
    		];	
    
        }
    });
    Please let me know what should I do.
    Thanks for your help,

    6sigma

  4. #4
    Sencha User jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747

    Default

    Hmm, the plugin looks like it is a singleton, and already instantiated. Try this:

    Code:
    MyWindow = Ext.extend(MyWindowUi, {
        initComponent: function() {
            MyWindow.superclass.initComponent.call(this);
    
    	this.westPanel.plugins = [this.westPanel.initPlugin(Ext.ux.PanelCollapsedTitle)];
        }
    });

  5. #5
    Sencha User
    Join Date
    Feb 2010
    Location
    Montral, QC
    Posts
    12

    Default

    Hello Jarred,
    Thanks for your help. I love ExtDesigner. It's a great application to format what I want. There are six months I was a novice with Extjs. I read different books (Cookbook, ExtJSinAction, ...) I visited your website. Now I design my application.
    Thank you. (Merci)

Similar Threads

  1. Ext.ux.PanelCollapsedTitle - Cross-browser vertical text
    By joeri in forum Ext 3.x: User Extensions and Plugins
    Replies: 31
    Last Post: 26 Mar 2014, 1:00 AM
  2. [Solved] Ext.ux.PanelCollapsedTitle: is this working with a Border-Layout?
    By Metasequoia in forum Ext 3.x: User Extensions and Plugins
    Replies: 1
    Last Post: 14 Dec 2010, 5:02 AM
  3. Error - Skype plugin
    By srajakaruna in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 3 Sep 2009, 1:56 AM
  4. plugin error?
    By DavidSingleton in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 13 Mar 2009, 6:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •