RinteRface / argonDash

argon dashboard template
https://rinterface.github.io/argonDash/
138 stars 37 forks source link

argonDash/inst/examples/ - sidebar #5

Closed anaidv57 closed 5 years ago

anaidv57 commented 5 years ago

Hi,

I executed the app.R (argonDash/inst/examples/) and the sidebar is not loading.

Kind regards, Anaid Villamizar sidebar

anaidv57 commented 5 years ago

The same thing happens when I use argonDashGallery()

DivadNojnarg commented 5 years ago

Hi, I cannot reproduce your issue. What web browser are you using? Could you run sessionInfo()please? is it the GitHub version or the CRAN version?

aephidayatuloh commented 5 years ago

Did you use RStudio's default window or internet explorer/edge to view the app?

DivadNojnarg commented 5 years ago
capture d ecran 2019-01-30 a 12 39 52

RStudio's default window or chrome, safari, firefox, opera, brave ... But forget about internet explorer and Edge.

siddbhatia commented 5 years ago

Hi,

I can successfully get the examples running, but when I use

argonSidebarMenu(
                vertical = FALSE,

It only makes the side bar horizontal , not the side menu inside

screen shot 2019-02-25 at 10 37 49 am

I even tried using a navBarMenu inside the sidebar , which successfully makes all the items horizontal , but leads to loss of reactivity on tabs.

Is there a solution ? Something like vertical = FALSE for argonSidebarMenu ?

DivadNojnarg commented 5 years ago

Humm, I am not able to reproduce this bug. Are you using the CRAN or the devel version. Indeed, the horizontal feature only works for the development release, not the CRAN one:

devtools::install_github("RinteRface/argonDash")
siddbhatia commented 5 years ago

Humm, I am not able to reproduce this bug. Are you using the CRAN or the devel version. Indeed, the horizontal feature only works for the development release, not the CRAN one:

devtools::install_github("RinteRface/argonDash")

Yes that worked out fine , there was an additional fix on vertical/horizontal on navbar class (argonDashSidebar). Keep up the good work , I never thought my shiny dashboards would look so beautiful.

jbixon13 commented 5 years ago

It appears I am running into this same issue even though I am using the Github version of argonDash. I've attached my sessionInfo and a screenshot of the sidebar (taken on Firefox but same issue appears on Chrome); I would appreciate any help.

image

image

jbixon13 commented 5 years ago

Aaaaand as soon as I send that I see argonDash is using 0.1.0. Could be the issue, but I definitely was using 0.2.0.9 yesterday; will try updating to resolve.

jbixon13 commented 5 years ago

Confirmed not working after updating to Github version again

DivadNojnarg commented 5 years ago

Hi, could you send me your sessionInfo again as well as a minimal example reproducing the bug. Thanks.

jbixon13 commented 5 years ago

SessionInfo: image

I'm seeing two behaviors based on slightly different setups: Example 1:

shinyUI(
  argonDashPage(title = 'Sync the City',
                description = 'Testing',
                header = argonDashHeader(color = 'primary', separator = TRUE),
                sidebar = argonDashSidebar(vertical = FALSE,
                                           id = 'sidebar',
                                           argonSidebarHeader(title = 'Main Menu'),

                                           argonSidebarMenu(
                                             argonSidebarItem(tabName = 'landing_page', 'Landing Page'),
                                             argonSidebarItem(tabName = 'map', 'Map'),
                                             argonSidebarItem(tabName = 'network', 'Network')
                                             )
                                           )
  )
)

Example 1 output: image

Example 2:

shinyUI(
  argonDashPage(title = 'Sync the City',
                description = 'Testing',
                header = argonDashHeader(color = 'primary', separator = TRUE),
                sidebar = argonDashSidebar(vertical = FALSE,
                                           id = 'sidebar',
                                           size = "md",
                                           brand_url = "http://www.google.com",

                                           argonSidebarHeader(title = 'Main Menu'),

                                           argonSidebarMenu(

                                             argonSidebarItem(tabName = "landing_page", "Landing Page"),
                                             argonSidebarItem(tabName = "map_UI", "Map"),
                                             argonSidebarItem(tabName = "network_UI", "Network")
                                           )
                )
  )
)

Example 2 output: image

The only difference between the inputs is in example 2 where size and brand_url are declared. If either one or the other of these are commented out they revert to the larger buttons seen in the example 1 output (even though size is using the default input of medium). Neither seems to be the expected output.

rdornas commented 4 years ago

Hello! When I run argonDashGallery() I get the following error:

Error in system.file(paste0("examples/app.R"), package = "argonDash",  : 
  no file found

It seems that the problem is that the app.R file is in another folder in examples, called gallery. That way, you might want to change the argonDashGallery() function to search for the app.R in examples/gallery/app.R.