I am trying to figure out how to set multiple data items with a single component. In the datamap I have:
getFavorite: {
setIsFavorite: 'favorite',
setClassId: 'class_id'
}
then
applyFavorite: function(config) {
return Ext.factory(config, myapp.view.classes.components.ListFavorite, this.getFavorite());
}
I can get the data into the component, but it seems like I need to have 2 separate update functions:
updateIsFavorite
updateClassId
When I do this, I can dump the variables to the console, with no problem. In the update functions I am doing a this.updateHtml(html);
Of course, it only returns the last html string. Is there a way to join the 2 html strings in the 2 separate functions? Or is there a way to work with both variables in a single update function??