I see. Looks like the data property is consumed when applied to the template (tpl).
I'd do something like this I think - as a way to preserve the data config passed in.
Code:
Ext.define('Crumb', {
extend: 'Ext.container.Container',
alias: 'widget.crumb',
initComponent: function () {
this.initialDataConfig = Ext.apply({}, this.data);
this.callParent(arguments);
}
});
var ct = Ext.widget({
xtype: 'container',
renderTo: document.body,
id: 'breadcrumbid2',
layout: {
type: 'hbox',
align: 'middle'
},
items: [{
xtype: 'crumb',
title: 'Lista Aziende',
tpl: '> {nome}',
margin: '0 0 0 10',
data: {
nome: 'home',
titolo_finestra: 'Lista Aziende'
}
}]
});
console.log(Ext.getCmp('breadcrumbid2').items.getAt(0).initialDataConfig);