I have app\view\TheMenu.js
Code:
Ext.define('MyApp.view.TheMenu', {
    extend: 'Ext.ActionSheet',
    items: [
        {
            text: 'Delete draft',
            ui  : 'decline'
        },
        {
            text: 'Save draft'
        },
        {
            text: 'Cancel',
            ui  : 'confirm'
        }
    ]
});
And then from the controller I want to show the ActionSheet.

Code:
openTheMenu: function() {
    console.log("should be opened");
    MyApp.view.TheMenu().show();
}
But it gives me error:
TypeError: MyApp.view.TheMenu(...).show is not a function