yonicd / slickR

slick carousel htmlwidget for R
https://yonicd.github.io/slickR/
Other
158 stars 14 forks source link

Change figure size according to browser window size #69

Open showteeth opened 1 year ago

showteeth commented 1 year ago

Hi,

I'm new to slickR, I wonder if there are any parameters or functions to change figure size according to browser window size automatically. When the figure size is larger than the browser window, the figure is not fully displayed.

image

I'm using slickR 0.5.0, the codes I used:

output$carousel <- renderSlickR({
    slickR(list.files(path = './',full.names = T,pattern = "png"),
           slideId = 'myslick') +
      settings(dots = TRUE,
               autoplay = TRUE)
  })