RinteRface/shinyMobile

Tab labels not showing

Closed this issue · 2 comments

Hey. I'm using shinyMobile 1.0.0 and now my tab names don't render. If I switch to 0.9.1 they show up not on the current version. Quick example of issue below

if(interactive()){
    ui <- shinyMobile::f7Page(
        shinyMobile::f7SingleLayout(
            navbar = shinyMobile::f7Navbar(
                title = 'test'),
    shinyMobile::f7Tabs( 
        animated = T,
        swipeable = F,
        id = "tabset",
        style = 'strong',
        
        shinyMobile::f7Tab(
            tabName = "tab1",
            icon = shinyMobile::f7Icon("arrow_up_doc"),))))
    server <- function(input, output){}
    shinyApp(ui = ui, server = server)
}

Created on 2023-09-06 with reprex v2.0.2

Hi,

In the 1.0.0, f7Tabs requires to pass the tab title in the title parameter:

f7Tab(
  title = "Tab 1",
  tabName = "tab1",
  ...
)

This aligns with base {shiny} which used the same for tabPanel.

Good to know thanks