Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icon on side bar #9

Open
uttam-1996 opened this issue Apr 24, 2019 · 5 comments
Open

icon on side bar #9

uttam-1996 opened this issue Apr 24, 2019 · 5 comments

Comments

@uttam-1996
Copy link

the icons on the side bar aren't working even when every icon is working can you please look into it

@DivadNojnarg
Copy link
Collaborator

Could you please provide a reproducible example? Thanks

@uttam-1996
Copy link
Author

ui = gentelellaPageCustom(
title = "CW Analytics",sidebar_collapsed = T,footer_fixed = F,
navbar = gentelellaNavbar(),
sidebar = gentelellaSidebar(site_title = shiny::HTML(paste(img(src='oc.png', align = "left",height = 55,width = 62), "hello world
Screenshot from 2019-05-03 12-02-16
")),url = "http://127.0.0.1:7862/",fixed = T,

sidebarMenu(
 
  sidebarItem(
    shiny::HTML(paste(img(src='stats.png', align = "center",height = 30,width = 45), "Sales")),
    tabName = "tab1"
    
  ),
  sidebarItem(
    title =   "Members-1",
    tabName = "tab2", 
    icon = icon("info")
  ),
  sidebarItem(
    "Members-2",
    tabName = "tab3", 
    icon = icon("info")
  ),
  sidebarItem(
    "Rewards",
    tabName = "tab4", 
    icon = icon("info")
  ),
  sidebarItem(
    "Sales",
    tabName = "tab5", 
    icon = icon("info")
  )
)

),
body = gentelellaBody(
# tags$style(type="text/css",
# ".shiny-output-error { visibility: hidden; }",
# ".shiny-output-error:before { visibility: hidden; }"
# ),
# tags$link(rel = "stylesheet", type = "text/css", href = "dashboard1.css"),
tabItems(
source(file.path("uis", "dash1.R"), local = TRUE)$value,
source(file.path("uis", "dash2.R"), local = TRUE)$value,
source(file.path("uis", "dash3.R"), local = TRUE)$value,
source(file.path("uis", "dash4.R"), local = TRUE)$value
#source(file.path("uis", "dash5.R"), local = TRUE)$value

)#tabitems

),#body
gentelellaFooter(leftText = "hello",
rightText = "2019")
)#page

@DivadNojnarg
Copy link
Collaborator

The problem comes from this:

The icon function from shiny generates:

<i class="fa fa-info"></I>

However, gentellela needs:

<i class="fas fa-info"></I>

I will fix it asap

@uttam-1996
Copy link
Author

Thanks Divad

@DivadNojnarg
Copy link
Collaborator

DivadNojnarg commented May 13, 2019

Actually you can use:

tags$i(class = "fas fa-info")

instead of the classic shiny::icon function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants