dreamRs / toastui

R htmlwidgets for ToastUI libraries: grid, calendar and chart
https://dreamrs.github.io/toastui
Other
82 stars 8 forks source link

Increase size of "more" popup #39

Closed ivelasq closed 10 months ago

ivelasq commented 10 months ago

First, thank you so much for this package! It is incredible.

I created a calendar but when there are multiple items on the same day, the popup box that appears when you click "more" is quite small. Is there a way to increase the size so that scrolling is not necessary?

Thanks again.

pvictor commented 10 months ago

Hello,

You can use cal_theme() to modify different aspect of the calendar, for example :

library(toastui)
rbind(
  cal_demo_data(),
  cal_demo_data(),
  cal_demo_data(),
  cal_demo_data(),
  cal_demo_data(),
  cal_demo_data(),
  cal_demo_data(),
  cal_demo_data()
) |> 
  calendar() |>
  cal_theme(
    month = list(
      moreView = list(
        border = "2px solid blue",
        boxShadow = '0 2px 6px 0 grey',
        backgroundColor = 'white',
        width = 350,
        height = 480
      )
    )
  )

See https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/theme.md#month-moreview for more details.

Victor

ivelasq commented 10 months ago

Thank you so much! I really appreciate it.