PDA

View Full Version : [CLOSED] Tool button callback in dashboard not firing?



sytel
2 May 2014, 3:18 AM
If I add tool to viewTemplate in Ext.dashboard.Dashboard, the tool's callback is not executing. There is no error reported.
Please have a look at https://fiddle.sencha.com/#fiddle/5hp
Is this a bug? Or should I do it differently?

mitchellsimoens
5 May 2014, 4:27 AM
It's due to using Ext.util.ObjectTemplate and when we apply the config to the part, cannot have a function sent to it. Instead, you need to use a string that will get resolved to a function on a ViewController like this: https://fiddle.sencha.com/#fiddle/5jk