ExtJS namespace

Get help with Spket IDE.
Post Reply
tarini
Posts: 5
Joined: Thu Jun 04, 2009 8:01 am

ExtJS namespace

Post by tarini » Thu Jun 04, 2009 8:04 am

I've got a problem with custom namespaces of my class...

i paste an example:

FILE widget/base/BaseStatusPanel.js

Code: Select all

Ext.ns("gext.widget.base");

/**
 * @class gext.widget.base.BaseStatusBar
 * @extends Ext.StatusBar
 */
gext.widget.base.BaseStatusBar = Ext.extend(Ext.StatusBar, {

	defaultText: "",
	
	/**
	 * Set the status 
	 * @param {Object} o A config object to configure status. The property clear will be automatically added.
	 */
	setStatus: function(config) {
		config = Ext.apply(config, {
			clear: {
				anim: false
			}
		});
		gext.widget.base.BaseStatusBar.superclass.setStatus.call(this, config);
	}
});
FILE test.js

Code: Select all

/** 
 * @include widget/base/BaseStatusBar.js
 */
 
var a =
If I use autocompletation Spekt doesn't have gext package and I cannot instantiate BaseStatusBar class... how can I solve this?

thanks

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Post by eric_suen » Thu Jun 04, 2009 12:27 pm

Hi, it should be

Code: Select all

/**
 * @include "widget/base/BaseStatusBar.js"
 */
 
var a = 
, you have to use "

tarini
Posts: 5
Joined: Thu Jun 04, 2009 8:01 am

Post by tarini » Thu Jun 04, 2009 1:20 pm

yeah it works...

thanks and sorry for my stupid error ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests