feedback | R Documentation |
Show / hide feedback messages.
feedback( inputId, show, text = NULL, color = NULL, icon = NULL, textPosition = "relative", session = shiny::getDefaultReactiveDomain() ) feedbackWarning( inputId, show, text = "Ye be warned", color = "#F89406", icon = shiny::icon("warning-sign", lib = "glyphicon"), textPosition = "relative", session = shiny::getDefaultReactiveDomain() ) feedbackDanger( inputId, show, text = "Danger, turn back!", color = "#d9534f", icon = shiny::icon("exclamation-sign", lib = "glyphicon"), textPosition = "relative", session = shiny::getDefaultReactiveDomain() ) feedbackSuccess( inputId, show, text = NULL, color = "#5cb85c", icon = shiny::icon("ok", lib = "glyphicon"), textPosition = "relative", session = shiny::getDefaultReactiveDomain() )
inputId |
the Shiny input's |
show |
Whether or not the feedback should be shown. The 'show' argument uses 'shiny::isTruthy()' to evaluate its value to 'TRUE' or 'FALSE'. |
text |
text string to display below input |
color |
the color of the feedback |
icon |
an html icon tag |
textPosition |
the CSS position for the div containing the feedback text. The default is "relative". Set to "absolute" to keep the text from shifting other elements on the page. |
session |
the |
showFeedback hideFeedback
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.