Custom button color

Hi guys,
How to give color for custom button ,pls any one help me

Thanks for advance

2 Likes

Thanks for rly @ahmadRagheb
i added button but how to give color pls tell me the syntax for color

i tried like this but it’s not worked,
frm.custom_buttons[“Your button label”].css(“background-color”, “red”);

Example For applying Custom color on custom button

cur_frm.add_custom_button(__("Your button label")).addClass("btn-warning").css({'color':'black','font-weight': 'bold'});

Screenshot%20from%202019-07-05%2012-00-24

2 Likes

thanks @ROHAN_JAIN1
It’s workked