-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bdfc03
commit 4a80a7a
Showing
34 changed files
with
308 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
library(shiny) | ||
library(shinyMobile) | ||
|
||
app <- shinyApp( | ||
ui = f7Page( | ||
title = "Update f7Fabs", | ||
f7SingleLayout( | ||
navbar = f7Navbar(title = "Update f7Fabs"), | ||
toolbar = f7Toolbar( | ||
position = "bottom", | ||
lapply(1:3, function(i) f7Link(label = i, href = "#") |> f7FabClose()) | ||
) |> f7FabMorphTarget(), | ||
# put an empty f7Fabs container | ||
f7Fabs( | ||
id = "fabsMorph", | ||
extended = TRUE, | ||
label = "Open", | ||
position = "center-bottom", | ||
color = "yellow", | ||
sideOpen = "right", | ||
morphTarget = ".toolbar" | ||
), | ||
f7Block(f7Button(inputId = "toggle", label = "Toggle Fabs")), | ||
f7Fabs( | ||
position = "center-center", | ||
id = "fabs", | ||
lapply(1:3, function(i) f7Fab(inputId = i, label = i)) | ||
), | ||
textOutput("res") | ||
) | ||
), | ||
server = function(input, output, session) { | ||
output$res <- renderText(input[["1"]]) | ||
|
||
observeEvent(input$toggle, { | ||
updateF7Fabs(id = "fabs") | ||
}) | ||
} | ||
) | ||
|
||
if (interactive() || identical(Sys.getenv("TESTTHAT"), "true")) app |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.