-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new page arg for scrollable content
- Loading branch information
1 parent
e618754
commit 39ba086
Showing
18 changed files
with
277 additions
and
31 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,65 @@ | ||
library(shiny) | ||
library(shinyMobile) | ||
|
||
searchModuleUI <- function(id) { | ||
ns <- NS(id) | ||
f7Tab( | ||
title = "test", | ||
tabName = "test", | ||
f7Searchbar(id = ns("search1")), | ||
f7VirtualList( | ||
id = ns("vlist"), | ||
strong = TRUE, | ||
dividers = TRUE, | ||
items = lapply(1:1000, function(i) { | ||
f7VirtualListItem( | ||
id = paste0("vlist-item-", i), | ||
title = paste("Title", i), | ||
subtitle = paste("Subtitle", i), | ||
header = paste("Header", i), | ||
footer = paste("Footer", i), | ||
right = paste("Right", i), | ||
paste0("Content", i), | ||
media = img(style = "border-radius: 8px", | ||
src = "https://cdn.framework7.io/placeholder/fashion-88x88-1.jpg") | ||
) | ||
}) | ||
) | ||
) | ||
} | ||
|
||
shinyApp( | ||
ui = f7Page( | ||
title = "Virtual List", | ||
f7TabLayout( | ||
navbar = f7Navbar( | ||
title = "SlamStats", | ||
leftPanel = TRUE, | ||
rightPanel = tagList( | ||
tags$a( | ||
class = "link icon-only panel-open", | ||
`data-panel` = "right", | ||
f7Icon("gear_alt") | ||
) | ||
) | ||
), | ||
panels = tagList( | ||
f7Panel(title = "Left Panel", | ||
side = "left", | ||
"Blabla", | ||
effect = "reveal"), | ||
f7Panel(title = "Right Panel", | ||
side = "right", | ||
"Blabla", | ||
effect = "push") | ||
), | ||
f7Tabs( | ||
animated = TRUE, | ||
searchModuleUI("test") | ||
) | ||
) | ||
), | ||
server = function(input, output) { | ||
|
||
} | ||
) |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"input": { | ||
"popup": true | ||
"popup1": true | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"input": { | ||
"popup": true, | ||
"text": "balbla" | ||
"popup1": true, | ||
"text1": "balbla" | ||
}, | ||
"output": { | ||
"res": "[1] \"balbla\"" | ||
"res1": "NULL" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"input": { | ||
"popup": false | ||
"popup1": false | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 @@ | ||
{ | ||
"input": { | ||
"popup2": true | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,9 @@ | ||
{ | ||
"input": { | ||
"popup2": true, | ||
"text2": "balbla" | ||
}, | ||
"output": { | ||
"res2": "[1] \"balbla\"" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 @@ | ||
{ | ||
"input": { | ||
"popup2": false | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.