I want to change the color of buttons of my custom dialog. In version10, this was what I was using and it was working:
$("Button[data-fieldname=update]").addClass("btn-danger");
(I used predefined button’s classes and applied that).
Now in version11, this isn’t working so I was trying with something like this
dialog.fields_dict.update.$wrapper.addClass("btn-danger");
But it is getting applied to whole field of button. Tried to change fields_dict with Buttons/Button but none worked.
Any help will be deeply appreciated.
Thanks