Skip to contents

Display a warning in a DOM element of choice

Usage

warn_id(warn_html, id, ..., ms = 10000)

Arguments

id

chr ID of the DOM element in which to display

...

Arguments passed on to shinyjs::html

html

The HTML/text to place inside the element. Can be either simple plain text or valid HTML code.

add

If TRUE, then append html to the contents of the element; otherwise overwrite it.

selector

JQuery selector of the elements to target. Ignored if the id argument is given.

asis

If TRUE, use the ID as-is even when inside a module (instead of adding the namespace prefix to the ID).

ms

The number of milliseconds to wait (1000 milliseconds = 1 second) before running the expression.

warn_text

chr/shiny.tags HTML or shiny.tags to render to HTML to display in the DOM

Value

A warning on the specified DOM element