javascript - Define Container for SweetAlert to Gray-Mask -


i'm using sweetalert display success or error structured json result. swal call made actions users takes against modal window on top of document window. ux perspective, expected sweetalert gray-out modal window, however, because sweetalert (and calling javascript) resides @ document level, document window (and not modal window) grayed sweetalert.

not preferable gray-out modal window because action originated, having gray-mask applied element/container directly behind sweetalert allows stand out rest of page. in picture below, can see how sweetalert blends page without gray-mask applied whatever container behind it.

(it should not matter, stem inevitable question: modal window created using kendo ui window widget)

i not see configurable options in sweetalert api allow me pass in optional container gray-masking. there known way tell sweetalert container should use gray-mask?

enter image description here


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -