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

Programmatically set the value of 'stat' in 'argonInfoCard' #10

Closed
Patrikios opened this issue Feb 26, 2019 · 0 comments
Closed

Programmatically set the value of 'stat' in 'argonInfoCard' #10

Patrikios opened this issue Feb 26, 2019 · 0 comments

Comments

@Patrikios
Copy link

Patrikios commented Feb 26, 2019

I would like to programmatically set the value of 'stat' in the 'argonInfoCard'. I figure the best would be to render a custom UI element in the server side of the application:

    output$UI1 <- renderUI({
      argonInfoCard(
        value = reactiveData()$x, #"350,897"
        title = "Umsatzerlöse", 
        stat = ireactiveData()$y, #"2.5"
        stat_icon = "arrow-up",
        description = "2017/2016 Ratio", 
        icon = "chart-bar", 
        icon_background = "danger",
        hover_lift = TRUE,
        background_color = "default"
      )
    })

However, the outputing UI element if deformed, prolonged in its height.
If I would like to set the stat value inside of the ui componennt of the shiny app, providing it with a renderText value for argonInfoCard does not apply, as it creates a div or span HTML element.

So the question is, how can I set stat value programmatically in shiny context?

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

1 participant