PDA

View Full Version : [Ext6.5.0] Not possible to set instances in the panel#tool config



tvanzoelen
29 Jun 2017, 6:03 AM
See and open fiddle:

https://fiddle.sencha.com/#view/editor&fiddle/22cc

will crash on run (also in nightly)

Seems the slider can not be instantiated in the tools section. Previously this worked fine.

*update

it will crash when you set any instance in the tool config. This problem seems to be related to the panels tool config. Setting it by xtype solves it.
Looks likes a bug.

Phil Guerrant
29 Jun 2017, 9:20 AM
Only Ext.Tool instances can go in the tools array. Try adding your slider as a header item instead:




Ext.create({
xtype: 'panel',
width : 200,
height : 200,
renderTo: Ext.getBody(),
header: {
items: [slider]
}
});