I would like to know if it is possible to change the color of an actionButton within an observeEvent.
In ui I have :
actionButton("bell","",icon=icon("bell"),
class = "btn action-button",
style = "color: white;
background-color: blue")
In server.R, my observeEvent is :
observeEvent(data_moment[1,c("facebook")]=="NA", {
disable("bell")
})
What I want :
If data_moment[1,c("facebook")]=="NA"
I would like to disable the bell button, and set its color to grey.
Do you know how I can do ?