Description
Bug, feature request, or proposal:
Feature Request.
What is the expected behavior?
I would like to be called back when the overlay for md-sidenav
is clicked.
What is the current behavior?
There is no callback available.
What are the steps to reproduce?
N/A
What is the use-case or motivation for changing an existing behavior?
I have a layout where I display a sub-pane using a sidenav. This is displayed in a router outlet within the sidenav component. Clicking a button on the main page changes the route and opens the sidenav to display an edit screen/popup. I want to be called back when the user clicks on the sidenav overlay, so that I can change the route back to the main page's route. Using the onCloseStart
and onClose
events on the sidenav itself is not really right for this.
Which versions of Angular, Material, OS, browsers are affected?
N/A
Is there anything else we should know?
I would be more than happy to put up a pull-request for this. I would like to ask the community whether they would want control via the callback whether the sidenav should close or not, or whether just an informational callback (e.g. event) to inform that sidenav will be closing is enough (the latter is fine for my use-case).