Search code examples
angularnebularngx-admin

Is there a way to have Nebular Window a backdrop shadow?


I have a form inside this window and opening it with {hasBackdrop: false, closeOnEsc: false} property makes the background of my web app uneasy to look at.

Please take a look here: window without backdrop.

Now is there a way to add backdrop shadow when hasBackdrop is set to false? I just want to disable the dismiss function on clicking outside not the background shadow.


Solution

  • If you see NbWindowConfig there is a property that is closeOnBackdropClick with a type of boolean. Use that instead of setting hasBackdrop to false.