diff --git a/R/f7Button.R b/R/f7Button.R index 5a217e7c..9fa1f6aa 100644 --- a/R/f7Button.R +++ b/R/f7Button.R @@ -16,7 +16,7 @@ #' @param active Button active state. Default to FALSE. This is useful when #' used in \link{f7Segment} with the strong parameter set to TRUE. #' @param tonal Button tonal style. Default to FALSE -#' @param icon Button icon. Expect link{f7Icon}. +#' @param icon Button icon. Expect \link{f7Icon}. #' #' @author David Granjon, \email{dgranjon@@ymail.com} #' diff --git a/man/button.Rd b/man/button.Rd index b324c3af..226283ae 100644 --- a/man/button.Rd +++ b/man/button.Rd @@ -69,7 +69,7 @@ used in \link{f7Segment} with the strong parameter set to TRUE.} \item{tonal}{Button tonal style. Default to FALSE} -\item{icon}{Button icon. Expect link{f7Icon}.} +\item{icon}{Button icon. Expect \link{f7Icon}.} \item{session}{The Shiny session object, usually the default value will suffice.} @@ -123,7 +123,7 @@ app <- shiny::shinyApp( fill = FALSE, tonal = TRUE, size = "large", - icon = f7Icon("square") + icon = f7Icon("speaker_zzz") ) }) } diff --git a/man/updateF7App.Rd b/man/updateF7App.Rd index 9e4054f1..aa209658 100644 --- a/man/updateF7App.Rd +++ b/man/updateF7App.Rd @@ -94,8 +94,10 @@ app <- shinyApp( server = function(input, output, session) { observeEvent(input$goButton, { f7Dialog( + id = "test2", title = "Dialog title", - text = "This is an alert dialog" + text = "This is an alert dialog", + type = "confirm" ) }) diff --git a/man/updateF7Entity.Rd b/man/updateF7Entity.Rd index 6ed6134e..d7cfbdac 100644 --- a/man/updateF7Entity.Rd +++ b/man/updateF7Entity.Rd @@ -25,7 +25,7 @@ library(shinyMobile) app <- shinyApp( ui = f7Page( - title = "Simple Dialog", + title = "Update Entity", f7SingleLayout( navbar = f7Navbar(title = "Update action sheet instance"), f7Segment( @@ -40,6 +40,12 @@ app <- shinyApp( "Update config", fill = FALSE, outline = TRUE + ), + f7Button( + inputId = "reset", + "Reset", + fill = FALSE, + outline = TRUE ) ) ) @@ -78,6 +84,26 @@ app <- shinyApp( ) ) }) + + observeEvent(input$reset, { + updateF7Entity( + id = "action1", + options = list( + buttons = list( + list( + text = "Notification", + icon = f7Icon("info"), + color = NULL + ), + list( + text = "Dialog", + icon = f7Icon("lightbulb_fill"), + color = NULL + ) + ) + ) + ) + }) } )