Skip to contents

Updates a chat's drawer content or title without changing its visibility. Omitted fields preserve their current value. Use an empty htmltools::tagList() to clear content or "" to clear the title.

Usage

chat_drawer_update(
  id,
  content = NULL,
  title = NULL,
  session = shiny::getDefaultReactiveDomain()
)

Arguments

id

The ID of the chat element.

content

Optional UI content for the drawer.

title

Optional drawer title.

session

The Shiny session object.

Value

Invisibly, NULL.

See also

chat_drawer() to configure a drawer, and chat_ui() or page_chat() to display one.

Other chat drawers: chat_drawer(), chat_drawer_hide(), chat_drawer_show(), chat_drawer_toggle()