PDA

View Full Version : TreeModel qtip



jorgegaray
3 Jul 2017, 7:22 AM
Hi, i am trying add a qtip with showdelay for a node unsuccessfully.
I read about qtipCfg (http://all-docs.info/extjs4/docs/api/Ext.tree.TreeNode.html#), but I have not found examples on the web.

qtip is works, but showDelay doesn't.

code example

var store = Ext.create('Ext.data.TreeStore', {
root: {
expanded: true,
children: [
{ text: "detention", leaf: true },
{ text: "homework",
expanded: true,
//qtip: 'prueba',
qtipCfg: new Ext.QuickTip({
title:'Title',
text:'prueba'
}),
children: [
{ text: "book report", leaf: true },
{ text: "algebra", leaf: true}
]
},
{ text: "buy lottery tickets", leaf: true }
]
}
});


Ext.create('Ext.tree.Panel', {
title: 'Simple Tree',
width: 200,
height: 150,
store: store,
rootVisible: false,
renderTo: Ext.getBody()
});

Gary Schlosberg
5 Jul 2017, 5:10 AM
The docs for Ext JS 4 are here:
http://docs.sencha.com/extjs/4.2.6/#!/api