ucan-ext-js-kitchen-sink
Version:
my-ext-gen-app description for Ext JS app MyExtGenApp
22 lines (16 loc) • 618 B
JavaScript
Ext.define('UCANSink.view.componentDetail.examples.detailView.exampleViewController', {
extend: 'Ext.app.ViewController',
alias: 'controller.ucandetailViewexamplecontroller',
onBack: function() {
Ext.Msg.alert('Good job', 'You found the back button, here you would go back to the list view')
},
onChicken: function() {
Ext.Msg.alert('Test', 'Chicken');
},
showDetailView: function() {
this.getView().down('[cls~=js-ucan-detail-card-container]').setActiveItem(0);
},
showChipView: function() {
this.getView().down('[cls~=js-ucan-detail-card-container]').setActiveItem(1);
}
});