cherbert
26 Aug 2011, 4:53 AM
I am having real problems adding a new card to the Kitchen Sink example.
I am using the ItemDisclosure List.
onItemDisclosure: function(record, btn, index) {
sink.Main.ui.setCard({xtype:'panel',html:'test'},'slide');
},
Searching the forums people consistently state that .setCard is the method in which to add a card. However, I am getting Uncaught TypeError: Object [object Object] has no method 'setCard'
sink.Main.ui.SetActiveItem(0); works so I am obviously referencing an object with the layout of 'card' so why doesn't setCard?
If I am referencing the wrong object or referencing in the wrong way can someone guide me the correct way to link the onItemDisclosure event to open up a new card.
I have been tearing my hair out with this - please can anyone help?
I am using the ItemDisclosure List.
onItemDisclosure: function(record, btn, index) {
sink.Main.ui.setCard({xtype:'panel',html:'test'},'slide');
},
Searching the forums people consistently state that .setCard is the method in which to add a card. However, I am getting Uncaught TypeError: Object [object Object] has no method 'setCard'
sink.Main.ui.SetActiveItem(0); works so I am obviously referencing an object with the layout of 'card' so why doesn't setCard?
If I am referencing the wrong object or referencing in the wrong way can someone guide me the correct way to link the onItemDisclosure event to open up a new card.
I have been tearing my hair out with this - please can anyone help?