I have a integer field and I want to make a badge field in nova, that should display the field value but if the number is higher than 0 it should display a danger type, and if not it should have a info type.
The chalange is that I can't make it change type only via map and map cannot accept dynemic value.
I tried the following code, but even that didn't work, any help?
In this example, the resolveBadgeClasses method is used to dynamically set the badge class based on the value of the field. If the value is greater than 0, the badge class will be set to danger, otherwise it will be set to info.