Good Day,

Please see the following code:

Code:
Ext.define('app.view.Main', {
    
	extend: 'Ext.Container',
	
	requires: [
		'app.view.Home',
		'app.view.Action',
	],
	
    xtype: 'main',
    
    config: {
		layout: 'card',	
        items: [
            {	xtype: 'homecard'	},
            {	xtype: 'actioncard'	},
        ]
    }
});
I am trying to use the setActiveItem() function to change between the 'homecard' and 'actioncard' items. From the console I can access app.view.Main, but it has no setActiveItem function. How can I switch the active item in this case?

Thank you!