Change the colour of the button when clicked

Hi i am working to change the button of the colour when clicked however i am not able to to achieve that and cant find the reason to so
image

I have tried shinybs as shown below

UI page,
image

Server page

shinyBS's bsButton has a toggle param (TRUE/FALSE) to give it the behaviour of changing the shade of the colour when pressed vs when unpressed when toggle is TRUE

thanks for this but while referring to this

if you look at the last approach they haven't used the toggle parameter

sorry for having misunderstood. Its good that you found solution on stackoverflow.

thank you for this though!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.