Learn R Programming

polished (version 0.1.0)

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("polished"),
  admin_ui_options = default_admin_ui_options()
)

Arguments

ui

UI of the application.

sign_in_page_ui

Either NULL, the 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 elements containing custom UI to add additional 'shinydashboard' tabs to the Polished admin panel.

custom_admin_button_ui

Either admin_button_ui("polished"), the default, or your custom UI to take admins from the custom Shiny app to the Admin panel.

admin_ui_options

list of html elements to customize branding of the "Admin Panel". Valid list element names are "title", "sidebar_branding", and "browser_tab_icon". See default_admin_ui_options for an example.

Value

Secured Shiny app UI