Skip to contents

Add a temporary message after an element Message is added directly below element and persists for three seconds

Usage

js_after(
  id,
  content,
  status = NULL,
  properties = list(`font-size` = "12px", display = "block", position = "relative"),
  delay = 3000,
  asis = FALSE,
  .ns = ns_find()
)

Arguments

id

(chr) Automatically namespaced with ns if inside a module

content

chr/shiny.tag/shiny.tag.list Content to add beneath the element

properties

list of css rules to apply to the parent element of the content. Defaults to jQuery validation styled messages.

delay

dbl duration in ms before removing the content from the element. Set to 0 to allow the element to persist.

asis

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

.ns

fun ns function. Typically found automatically.

Value

Content added to element