I have a Window. I'm having some issues with the default close button which is on the top-right hand corner of the window. Therefore i was thinking to disable that close button and add a close button so that when the user clicks will disable/remove the window. What is the code to remove/close the Window.
The Window definition is as follows;
Ext.define('MyApp.view.MyWin', {
extend: 'Ext.window.Window',
alias: 'widget.mywin',
......
mywin
is the variable holding an instance of your window, yes. The code you showed does not open any window, so we can't tell you how to close that window in particular. See my answer for a window that closes itself. – AndreKR