Description Usage Arguments Details Value Examples
Add role language attribute to key Shiny widgets.
1 | set_roles(session)
|
session |
Shiny session. |
You can inspect the element in your browser to verify the addition of role attributes for the following Shiny elements.
tabsetPanel
tabPanel
nothing returned
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | if(interactive()){
library(shiny)
shinyApp(
ui = fluidPage(
use_access(),
h3("App title"),
tabsetPanel(
tabPanel("panel1", "Content"),
tabPanel("panel2", "Content")
),
tabsetPanel(
tabPanel("panel1", "Content"),
tabPanel("panel2", "Content"),
type = "pills", id = "tsp2"
)
),
server = function(input, output, session){
set_roles(session)
}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.