Opens a modal for the given URL.
up.modal.visit('/foo', { target: '.list' })
This will request /foo
, extract the .list
selector from the response
and open the selected container in a modal dialog.
Emits events up:modal:open
and up:modal:opened
.
The URL to load.
The CSS selector to extract from the response. The extracted content will be placed into the dialog window.
See options for up.modal.follow()
.
A promise that will be fulfilled when the modal has been loaded and the opening animation has completed.