View source: R/utils_modal_contents.R
This function is a wrapper around modal tabs. It does two things. first, it sets the title for the whole modal. Its assumed that this is going to be based on the id of the thing you clicked on the map. Second, it formats the modals' CSS: it applies nice CSS classes to all tabs and wraps them in modalDialog.
1 | modal_tab_format(region, title_fmt, ..., type = "tabs")
|
region |
this is a character value, probably from a reactive value |
title_fmt |
is a format for the modal title |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.