Comments (7)
Actually I got it working, not sure what was wrong, but it was likely something in my code. Thanks for quick fix!
from daterangepicker.
Yeah, I never really used bookmarking in my Apps, thats why I just skipped it.
I will have a look how other inputs manage the bookmarking and state restoring.
from daterangepicker.
Wow, thanks for quick reply! Would be awesome! 👍
from daterangepicker.
I just pushed 51e1edc. Could you check if that solves the issue?
from daterangepicker.
Hm, dashboard state depending on daterangepicker is now properly restored, but the daterangepicker UI still shows defaults.
from daterangepicker.
Could you maybe give a small example?
With this little example, the start & enddate are restored properly.
library(shiny)
library(daterangepicker)
ui <- function(request) {
fluidPage(
bookmarkButton(),
dateRangeInput("daterange1", "Date range:",
start = "2001-01-01",
end = "2010-12-31"),
daterangepicker(
inputId = "daterange",
label = "Pick a Date",
start = Sys.Date() - 30, end = Sys.Date(),
max = Sys.Date(),
icon = icon("calendar")
)
)
}
server <- function(input, output, session) {}
enableBookmarking(store = "url")
shinyApp(ui, server)
from daterangepicker.
Indeed it works fine with your example. I'll need to dig into my larger dashboard to try to understand what's going on there. Thanks!
from daterangepicker.
Related Issues (12)
- Shiny input change is getting triggered for daterangepicker before clicking on apply button. HOT 7
- Allow specification of range names without using R names HOT 3
- Release daterangepicker 0.2.0
- Display chosen range in a custom format HOT 1
- Button Input Option HOT 2
- Time does not match selection HOT 4
- show ranges as option HOT 2
- Add Day / Week / Month / Quarter / Year calendar modes HOT 8
- update `ranges` with ? `updateDaterangepicker` HOT 7
- Release daterangepicker 0.2.0
- How to set time zones? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daterangepicker.