PDA

View Full Version : QuickTips not functioning?



ijof9
28 Oct 2010, 10:51 AM
Hello guys.

I can't get enough of these cool QuickTips, but rite now, I can't get them... at all.



Ext.onReady (function(){
Ext.QuickTips.init();
Ext.QuickTips.enable();
Ext.apply(Ext.QuickTips.getQuickTip(), { maxWidth: 200, minWidth: 100, showDelay: 0, trackMouse: true });
alert(Ext.QuickTips.isEnabled()); // which btw, says true.
});

/* After which I have a */ new Ext.grid.GridPanel({
// blah blah blah config opts
columns: [{header: 'P<sub>P</sub>', dataIndex:'published_pages', tooltip:'Published Pages', width:30}}]
});


And all I'm getting is standard browser tooltips, No QuickTips, no debug console output, nada.

ijof9
28 Oct 2010, 11:41 AM
This is probably a "how not to code with ext".

I was like:


Ext.QuickTips.init();
var gridConfig = blah blah blah...

// several lines later within the same js...
Ext.onReady(function(){ gridWindow = new Ext.Window({items:[gridConfig]}); });



Thanks for help, you're all so lovely.