Skip to content
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

How to include link icon in f7Link() function #154

Closed
moldach opened this issue Feb 16, 2021 · 1 comment
Closed

How to include link icon in f7Link() function #154

moldach opened this issue Feb 16, 2021 · 1 comment

Comments

@moldach
Copy link

moldach commented Feb 16, 2021

It's not clear from the docs ?f7Link how to include a Link icon; I've tried to include the path for a .ico file but it only includes it as a string.

 f7Link(label = "Personal Website", href = "https://moldach.github.io/", icon = "favicon.ico")
@DivadNojnarg
Copy link
Member

Like this:

library(shiny)
 library(shinyMobile)

 shinyApp(
   ui = f7Page(
    title = "Links",
    f7SingleLayout(
     navbar = f7Navbar(title = "f7Link"),
     f7Link(label = "Google", href = "https://www.google.com"),
     f7Link(href = "https://www.twitter.com", icon = f7Icon("bolt_fill"))
    )
   ),
   server = function(input, output) {}
 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants