Learn R Programming

polished (version 0.6.1)

secure_ui: Secure your Shiny UI

Description

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.

Usage

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()
)

Value

Secured Shiny app UI

Arguments

ui

UI of the application.

sign_in_page_ui

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.

custom_admin_ui

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")>
)

custom_admin_button_ui

Either admin_button_ui(), the default, or your custom UI to take Admins from the custom Shiny app to the polished Admin Panel.

admin_ui_options

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.