launchModal()
function from an onclick event or elsewhere.
Arguments
url
(optional): The page to load your modal content from.selector
(optional): The id of the div to use for the modal content.id
(optional): Give your modal an identifier if you need to manually call closeModal()
later in the cycle.size
: The size of the modal. Defaults to md
xs
, sm
, md
, lg
, xl
, 2xl