-
Hi! Question.... When I add a custom script to a
Where am I supposed to be putting custom JS/scripts for the head in order to not get this warning? Example:
Any help/tips appreciated! |
Beta Was this translation helpful? Give feedback.
Answered by
gadenbuie
Nov 6, 2023
Replies: 1 comment
-
Hi @MayaGans! You have three options:
library(shiny)
library(bslib)
ui <- page_navbar(
title = "My App",
header = tags$head(tags$script("alert('👋 hello hello!')")),
nav_panel(title = "One", p("First page content.")),
nav_panel(title = "Two", p("Second page content."))
)
shinyApp(ui, \(...) { }) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MayaGans
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @MayaGans! You have three options:
nav_panel()
s.header
orfooter
arguments ofpage_navbar()
.