Hey dear FlexMonster team,
Our customers love what your conditional formatting. Because of this, some of them have a feature request to expand the format options, if possible.
As a reminder, these are the current options:
format: { backgroundColor: string, color: string, fontFamily: string, fontSize: string }
Some of the most common requests we get are:
Br.
Jonas
Hello Jonas,
Thank you for reaching out to us.
Our team is happy to hear that your customers enjoy our conditional formatting feature!
We want to explain that the format
object also supports setting the fontStyle
and fontWeight
properties when setting the condition through the code. For example:
format: {
fontStyle: "italic",
fontWeight: "bold"
}
Also, you can use the customizeCell
function along with the conditional formatting to use the mentioned cell.style
property. The idea is to use the conditional format id from the data.conditions
value and apply the further customization.
You are welcome to check the following JSFiddle for reference: https://jsfiddle.net/flexmonster/8hwLk0g4/.
Please let us know if it works for you. Looking forward to hearing from you.
Kind regards,
Nadia
Hello again,
I was unfamiliar that cells that meet conditions will have them added to their cellData. This makes our request functionally possible without much work required. Thank you very much, we are satisfied with this solution! 🙂
Br
Jonas
Hello Jonas,
Thank you for the feedback!
We are glad to hear that the solution works for you.
Kind regards,
Nadia