Hi evryone. I’ve added in my editable grid checkbox in several column. My problem is when the line is not in editable mode, false or true is displayed instead of the checkbox. How can I change this. Thank you in advance.
You can use a renderer to render something else than the String value; it could be a LitRenderer
with an actual <vaadin-checkbox>
element or an icon of a checkmark.
Ok thank you for your reply. I 've already used litrenderer to format the display of a string but in that case how can i add a condition in the definition of the renderer ? Becausethe data is a boolean and i want to display a different icon when is false or true. Have you an example please ?
The easiest way is to use the ternary operator: Conditionals – Lit
OK thank you for your help