This function is used to secure your Shiny app's UI. Make sure to pass
your Shiny app's UI as the first argument to secure_ui()
at
the bottom of your Shiny app's ui.R
file.
secure_ui(
ui,
sign_in_page_ui = NULL,
custom_admin_ui = NULL,
custom_admin_button_ui = admin_button_ui(),
admin_ui_options = default_admin_ui_options()
)
Secured Shiny app UI
UI of the application.
Either NULL
, the default (See sign_in_ui_default
), or the HTML, CSS, and JavaScript
to use for the UI of the Sign In page.
Either NULL
, the default, or a list of 2 Shiny module UI functions
to add additional shinydashboard
tabs to the polished
Admin Panel. The list must be in the form:
list(
"menu_items" = <your_custom_admin_menu_ui("custom_admin")>,
"tab_items" = <your_custom_admin_tabs_ui("custom_admin")>
)
Either admin_button_ui()
, the default, or your custom
UI to take Admins from the custom Shiny app to the polished
Admin Panel.
list of HTML elements to customize branding of the polished
Admin Panel. Valid
list element names are title
, sidebar_branding
, and browser_tab_icon
. See
default_admin_ui_options
, the default.