Allow different style for placeholder
alexDevBR opened this issue · 1 comments
alexDevBR commented
What the title says. For example if displaying a table where a value is present for some rows, and not for others this will allow the user to easily notice what still needs to be filled in.
The solution could be as simple as adding a class to the div while the placeholder is being displayed.
I found a simple workaround for this:
<EasyEdit
viewAttributes={ hasValue ? {} : { className: "no-value" } }
and the style can be defined like this:
div.easy-edit-wrapper.no-value {
color: darkgray;
}
giorgosart commented
Thank you for logging this with me @alexDevBR, I'll add it in my backlog. Feel free to implement it if you know how to do this.