-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After upgrading to 2.0, updateF7Login doesn't work! #265
Comments
Hi, Sorry we made some changes here and you have to come up with your own server logic implementation as a form of module like with library(shiny)
library(shinyMobile)
ui <- f7Page(
title = "shinyMobile App",
f7SingleLayout(
navbar = f7Navbar(title = "Login Demo"),
f7Login(
id = "login",
title = "Login",
"Please log in to continue",
footer = tagList(
f7Link(label = "Forgot password?", href = "#"),
f7Link(label = "Sign up", href = "#")
)
),
f7Button(inputId = "login_btn", label = "Log In")
)
)
myLoginServer <- function(id) {
moduleServer(
id,
function(input, output, session) {
observeEvent(input$submit, {
updateF7Login(
user = 'abc',
password = 'abc'
)
})
}
)
}
server <- function(input, output, session) {
myLoginServer("login")
}
shinyApp(ui, server) |
@DivadNojnarg thank you very much.
|
hi ,@DivadNojnarg
I have a code ,it is work in version 1.0;
but after upgrading to 2.0, updateF7Login doesn't work!
can you help me,the code is as follow:
The text was updated successfully, but these errors were encountered: