notification_item: Create a notification item.

View source: R/dropdown_menu.R

notification_itemR Documentation

Create a notification item.

Description

Create a notification item.

Usage

notification_item(text, icon = "warning", color = "")

notificationItem(text, icon = "warning", color = "")

Arguments

text

Text of the notification.

icon

Additional icon.

color

Color of the notification item. One of c("", "red", "orange", "yellow", "olive", "green", "teal", "blue", "violet", "purple", "pink", "brown", "grey", "black")

Value

A notification item that can be passed to dropdownMenu

Functions

  • notificationItem(): Create a notification item (alias for notification_item for compatibility with shinydashboard)

Examples

notificationItem("This is notification!", color = "red")

Appsilon/semantic.dashboard documentation built on April 21, 2024, 2:42 p.m.