To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
I am trying to add an icon (FontAwesome) to a grid...thought of adding it as a button, but could not figure how.Is it possible?Or should it be done as a image?
Yes, this is possible. However, you need to add column renderer to render the desired column of the grid, see https://vaadin.com/book/-/page/components.grid.html#components.grid.renderer.
To just render an icon, one can use the HtmlRenderer and convert the font icon to html, e.g. FontAwesome.ANGLE_UP.getHtml() to display the icon ANGLE_UP.