-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
6 changed files
with
36 additions
and
72 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
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 +1 @@ | ||
[{"path":"https://felixluginbuhl.com/scroller/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Félix Luginbuhl. Author, maintainer.","code":""},{"path":"https://felixluginbuhl.com/scroller/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Luginbuhl F (2024). scroller: Scroll element Shiny. R package version 0.1.1, https://github.com/lgnbhl/scroller, https://felixluginbuhl.com/scroller.","code":"@Manual{, title = {scroller: Scroll to any element in Shiny}, author = {Félix Luginbuhl}, year = {2024}, note = {R package version 0.1.1, https://github.com/lgnbhl/scroller}, url = {https://felixluginbuhl.com/scroller}, }"},{"path":"https://felixluginbuhl.com/scroller/index.html","id":"scroller-","dir":"","previous_headings":"","what":"Scroll to any element in Shiny","title":"Scroll to any element in Shiny","text":"Scroll object Shiny apps package scroller allows scroll element page Shiny thanks Arbitrary anchor JS.","code":""},{"path":"https://felixluginbuhl.com/scroller/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Scroll to any element in Shiny","text":"Install package Github.","code":"# install.packages(\"remotes\") remotes::install_github(\"lgnbhl/scroller\")"},{"path":"https://felixluginbuhl.com/scroller/index.html","id":"shiny","dir":"","previous_headings":"Installation","what":"Shiny","title":"Scroll to any element in Shiny","text":"order use scroller, must first call use_scroller() apps’ UI. can add CSS selector hash (#) automatically scrolled . selector returns 1 element, first element found scrolled . information .","code":"library(shiny) library(tidyverse) library(ggrepel) library(scroller) shinyApp( ui = fluidPage( align = \"center\", scroller::use_scroller(animationLength = 2000), # add use_scroller() in the UI h1(\"Shiny with scroller\"), shiny::actionButton(inputId = NULL, label = \"Scroll to plot\", class = \"btn-success\") %>% shiny::a() %>% shiny::tagAppendAttributes(href = \"##plot\"), # add scroller id CSS shiny::actionButton(inputId = NULL, label = \"No scroll to plot\", class = \"btn-primary\") %>% shiny::a() %>% shiny::tagAppendAttributes(href = \"#plot\"), # add id CSS HTML(rep(\"<br/><br/><br/>↓<br/>\", 20)), plotOutput(\"plot\"), shiny::actionButton(inputId = NULL, label = \"Scroll to top\", class = \"btn-success\") %>% shiny::a() %>% shiny::tagAppendAttributes(href = \"#.btn\") # add scroller class reference ), server = function(input, output, session){ output$plot <- renderPlot({ ggplot(starwars, aes(mass, height)) + geom_point(aes(color = gender)) + geom_label_repel(aes(label = name), size = 3) + labs(title = \"Star Wars Characters Body Mass Index\") }) } )"},{"path":"https://felixluginbuhl.com/scroller/index.html","id":"customize-it","dir":"","previous_headings":"Installation","what":"Customize it","title":"Scroll to any element in Shiny","text":"can change animation lenght, easing function (see jquery-easing options availables) scroll set.","code":"scroller::use_scroller( animationLength = 1500, easingFunction = \"easeOutCirc\", scrollOffset = 30 )"},{"path":"https://felixluginbuhl.com/scroller/reference/scroller-dependencies.html","id":null,"dir":"Reference","previous_headings":"","what":"scroller dependencies — html_dependencies_scroller","title":"scroller dependencies — html_dependencies_scroller","text":"Get scroller html dependencies.","code":""},{"path":"https://felixluginbuhl.com/scroller/reference/scroller-dependencies.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"scroller dependencies — html_dependencies_scroller","text":"","code":"html_dependencies_scroller(use_cdn = TRUE)"},{"path":"https://felixluginbuhl.com/scroller/reference/scroller-dependencies.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"scroller dependencies — html_dependencies_scroller","text":"use_cdn use CDN (default) use locally stored files.","code":""},{"path":"https://felixluginbuhl.com/scroller/reference/use_scroller.html","id":null,"dir":"Reference","previous_headings":"","what":"Use Scroller — use_scroller","title":"Use Scroller — use_scroller","text":"Use Scroller","code":""},{"path":"https://felixluginbuhl.com/scroller/reference/use_scroller.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Use Scroller — use_scroller","text":"","code":"use_scroller( animationLength = 750, easingFunction = \"linear\", scrollOffset = 0, use_cdn = TRUE )"},{"path":"https://felixluginbuhl.com/scroller/reference/use_scroller.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Use Scroller — use_scroller","text":"animationLength integrer. Lenght animation easingFunction string. effect jquery-easing. scrollOffset integrer. scrollOffset use_cdn use CDN (default) use locally stored files.","code":""},{"path":"https://felixluginbuhl.com/scroller/reference/use_scroller.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Use Scroller — use_scroller","text":"","code":"use_scroller() #> <script>$(document).ready(function(){ #> AA_CONFIG = {animationLength: 750, easingFunction: 'linear', scrollOffset:0}; #> });<\/script>"},{"path":"https://felixluginbuhl.com/scroller/news/index.html","id":"scroller-011","dir":"Changelog","previous_headings":"","what":"scroller 0.1.1","title":"scroller 0.1.1","text":"Added NEWS.md file track changes package. create function html_dependencies_scroller(). Improve HTML dependencies. Now using DNS default. working, use local files.","code":""}] | ||
[{"path":"https://felixluginbuhl.com/scroller/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Félix Luginbuhl. Author, maintainer.","code":""},{"path":"https://felixluginbuhl.com/scroller/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Luginbuhl F (2024). scroller: Scroll element Shiny. R package version 0.1.1, https://github.com/lgnbhl/scroller, https://felixluginbuhl.com/scroller.","code":"@Manual{, title = {scroller: Scroll to any element in Shiny}, author = {Félix Luginbuhl}, year = {2024}, note = {R package version 0.1.1, https://github.com/lgnbhl/scroller}, url = {https://felixluginbuhl.com/scroller}, }"},{"path":"https://felixluginbuhl.com/scroller/index.html","id":"scroller-","dir":"","previous_headings":"","what":"Scroll to any element in Shiny","title":"Scroll to any element in Shiny","text":"Scroll object Shiny apps scroller allows scroll element page Shiny thanks Arbitrary anchor JS.","code":""},{"path":"https://felixluginbuhl.com/scroller/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Scroll to any element in Shiny","text":"Install package Github.","code":"# install.packages(\"remotes\") remotes::install_github(\"lgnbhl/scroller\")"},{"path":"https://felixluginbuhl.com/scroller/index.html","id":"shiny","dir":"","previous_headings":"Installation","what":"Shiny","title":"Scroll to any element in Shiny","text":"order use scroller, must first call use_scroller() apps’ UI. can add CSS selector hash (#) automatically scrolled . selector returns 1 element, first element found scrolled . information .","code":"library(shiny) library(tidyverse) library(ggrepel) library(scroller) shinyApp( ui = fluidPage( align = \"center\", scroller::use_scroller(animationLength = 2000), # add use_scroller() in the UI h1(\"Shiny with scroller\"), shiny::actionButton(inputId = NULL, label = \"Scroll to plot\", class = \"btn-success\") %>% shiny::a() %>% shiny::tagAppendAttributes(href = \"##plot\"), # add scroller id CSS shiny::actionButton(inputId = NULL, label = \"No scroll to plot\", class = \"btn-primary\") %>% shiny::a() %>% shiny::tagAppendAttributes(href = \"#plot\"), # add id CSS HTML(rep(\"<br/><br/><br/>↓<br/>\", 20)), plotOutput(\"plot\"), shiny::actionButton(inputId = NULL, label = \"Scroll to top\", class = \"btn-success\") %>% shiny::a() %>% shiny::tagAppendAttributes(href = \"#.btn\") # add scroller class reference ), server = function(input, output, session){ output$plot <- renderPlot({ ggplot(starwars, aes(mass, height)) + geom_point(aes(color = gender)) + geom_label_repel(aes(label = name), size = 3) + labs(title = \"Star Wars Characters Body Mass Index\") }) } )"},{"path":"https://felixluginbuhl.com/scroller/index.html","id":"customize-it","dir":"","previous_headings":"Installation","what":"Customize it","title":"Scroll to any element in Shiny","text":"can change animation lenght, easing function (see jquery-easing options availables) scroll set.","code":"scroller::use_scroller( animationLength = 1500, easingFunction = \"easeOutCirc\", scrollOffset = 30 )"},{"path":"https://felixluginbuhl.com/scroller/reference/scroller-dependencies.html","id":null,"dir":"Reference","previous_headings":"","what":"scroller dependencies — html_dependencies_scroller","title":"scroller dependencies — html_dependencies_scroller","text":"Get scroller html dependencies.","code":""},{"path":"https://felixluginbuhl.com/scroller/reference/scroller-dependencies.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"scroller dependencies — html_dependencies_scroller","text":"","code":"html_dependencies_scroller(use_cdn = TRUE)"},{"path":"https://felixluginbuhl.com/scroller/reference/scroller-dependencies.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"scroller dependencies — html_dependencies_scroller","text":"use_cdn use CDN (default) use locally stored files.","code":""},{"path":"https://felixluginbuhl.com/scroller/reference/use_scroller.html","id":null,"dir":"Reference","previous_headings":"","what":"Use Scroller — use_scroller","title":"Use Scroller — use_scroller","text":"Use Scroller","code":""},{"path":"https://felixluginbuhl.com/scroller/reference/use_scroller.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Use Scroller — use_scroller","text":"","code":"use_scroller( animationLength = 750, easingFunction = \"linear\", scrollOffset = 0, use_cdn = TRUE )"},{"path":"https://felixluginbuhl.com/scroller/reference/use_scroller.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Use Scroller — use_scroller","text":"animationLength integrer. Lenght animation easingFunction string. effect jquery-easing. scrollOffset integrer. scrollOffset use_cdn use CDN (default) use locally stored files.","code":""},{"path":"https://felixluginbuhl.com/scroller/reference/use_scroller.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Use Scroller — use_scroller","text":"","code":"use_scroller() #> <script>$(document).ready(function(){ #> AA_CONFIG = {animationLength: 750, easingFunction: 'linear', scrollOffset:0}; #> });<\/script>"},{"path":"https://felixluginbuhl.com/scroller/news/index.html","id":"scroller-011","dir":"Changelog","previous_headings":"","what":"scroller 0.1.1","title":"scroller 0.1.1","text":"Added NEWS.md file track changes package. create function html_dependencies_scroller(). Improve HTML dependencies. Now using DNS default. working, use local files.","code":""}] |