PDA

View Full Version : qtip\qtipConf



nielsenbm
19 Mar 2009, 12:18 AM
first - what is the diff?

I tried to work with qtip for treeNode and it doesn't work so i moved to work with qtipConf and I got a null pointer error message here:

Ext.QuickTips.register(b.qtipCfg)

and it said that Ext.QuickTips is undefined.

What did I do wrong?

jsakalos
19 Mar 2009, 2:10 AM
Do you use standard Ext or build-your-own Ext? If the latter, have you included QuickTips in the build?

nielsenbm
19 Mar 2009, 5:19 AM
you right i insert now the QuickTip to my build but now i got other error:

{b.register.apply(b,arguments)

that b.register is null.

(By the way i took the full version to be sure that everything is inside).

Any idea?

nielsenbm
19 Mar 2009, 7:24 AM
This issue happened to me only in set of qtipCfg.
When i set qtip parameter i don't get any exception but this is not affect the object and i don't see the tool tip.

so again what is the diff? and why qtip not affect?

jsakalos
19 Mar 2009, 10:48 AM
Check if you pass a valid argument as per http://extjs.com/deploy/dev/docs/?class=Ext.QuickTip&member=register

nielsenbm
22 Mar 2009, 6:59 AM
var children = [{
text: 'First Level Child 1',
qtip: 'TestQtip',
children: [{
text: 'Second Level Child 1',
leaf: true,
qtip: 'TestQtip'
}, {
text: 'ccc',
leaf: true,
qtip: 'TestQtip'
}]
}, {
text: 'First Level Child 2',
draggable: false,
children: [{
text: 'Second Level Child 1',
draggable: true,
leaf: true
}, {
text: 'aaaabbb',
draggable: true,
leaf: true,
qtip: 'TestQtip'
}]

}];

tree = new Ext.tree.TreePanel({
loader: new Ext.tree.TreeLoader(),
width: 200,
height: 350,
renderTo: 'treeC',
enableDrop: false,
enableDrag: true,
ddGroup: groupId,
root: new Ext.tree.AsyncTreeNode({
expanded: true,
leaf: false,
text: 'Tree Root',
children: children
})
});

The qtip wasn't shown.

jsakalos
22 Mar 2009, 7:21 AM
http://extjs.com/learn/Ext_Forum_Help#How_to_post_code_properly