rstudio / rmarkdown

Dynamic Documents for R
https://rmarkdown.rstudio.com
GNU General Public License v3.0
2.88k stars 974 forks source link

modaldialog is not working in ioslides_presentation #2237

Open namrouche993 opened 3 years ago

namrouche993 commented 3 years ago

When i use bsModal in ioslides_presentation, and I click in the actionButton, I had such of screen : hell

my code:

---
title: "Untitled"
author: "Me"
output:
  ioslides_presentation
runtime: shiny
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
library(shiny)
library(shinyBS)

Interactive R Code

  fluidPage(
    actionButton("tabBut", "View Table"),
    bsModal("modalExample", "Data Table", "tabBut", size = "large",HTML("Hello world"))
  )
cderv commented 2 years ago

Your talking about https://github.com/ebailey78/shinyBS ?

It seems like shinyBS requires Bootstrap and Ioslide format does not use Bootstrap. I am not sure about that but this would be an issue to ask to the shinyBS author.

If Bootstrap is required, then it won't work I think.

Currently I do not know what would be needed to make it work within ioslide. I am not sure that support needs to be made in rmarkdown directly but maybe in shiny modal.

This issue would need some help to be solved.