3

関数「showNotification」を使用して緑色のポップアップを表示しようとしています。
公式ドキュメントによると、パラメータ「タイプ」を使用して色を変更できます。

type    A string which controls the color of the notification. One of "default" (gray), "message" (blue), "warning" (yellow), or "error" (red).

誰もこれを試したことがありますか?
HTML/HEX コードを使用する方法はありますか?

更新
私は次のような showNotifications の単一のタイプを再色付けすることになりました:

 tags$head(tags$style(HTML('
                                                 .shiny-notification-error {
                                                  background-color:#FF5757;
                                                  color:#000000;
                                                 }
                                                  .shiny-notification-message {
                                                  background-color:#B5E26F;
                                                  color:#000000;
                                                 }
                                                 '))),
4

1 に答える 1