PDA

View Full Version : [CLOSED] Ext.tip.QuickTipManager target does not accept el anymore.



yoshinori
15 Feb 2013, 1:10 AM
Hi,
Please paste following code snippet to 'CodeEditor' of the ExtJS 4.2 API doc.
This code does not show the quicktip with ExtJS 4.2 and ExtJS 4.1.3 although it works well with ExtJS 4.1.1.
Seems like ExtJS 4.2 accepts only 'id' property as target.



// Init the singleton. Any tag-based quick tips will start working.
Ext.tip.QuickTipManager.init();

// Apply a set of config properties to the singleton
Ext.apply(Ext.tip.QuickTipManager.getQuickTip(), {
maxWidth: 200,
minWidth: 100,
showDelay: 50 // Show 50ms after entering target
});

// Create a small panel to add a quick tip to
Ext.create('Ext.container.Container', {
id: 'quickTipContainer',
width: 200,
height: 150,
style: {
backgroundColor:'#000000'
},
renderTo: Ext.getBody()
});
var con = Ext.ComponentQuery.query('container#quickTipContainer')[0];
console.log(con);
// Manually register a quick tip for a specific element
Ext.tip.QuickTipManager.register({
target:con.getEl(),
title: 'My Tooltip',
text: 'This tooltip was added in code',
width: 100,
dismissDelay: 10000 // Hide after 10 seconds hover
})

mitchellsimoens
17 Feb 2013, 8:48 AM
Thanks for the report! I have opened a bug in our bug tracker.