In a component I have a freely programmed search help .
this search help component is called on the main component but still we are able to close the main component .
How to restrict the main window from being closed ?
I think while creating a window we have the option for setting the window as modal.
but in this case we are not creating the window we are calling another component as window.