saxix / django-admin-extra-buttons

https://saxix.github.io/django-admin-extra-buttons/
Other
137 stars 11 forks source link

Conditional label and html_attrs. #14

Open Upgreydd opened 1 year ago

Upgreydd commented 1 year ago

Hey It would be great to change colors and labels on buttons based on specific conditions.

emoreth commented 3 months ago

You can use button.html_attrs and button.label in your method.