Is there a way to determine whether the content of a table cell would overflow (i.e. wrap to another line in the cell) and if so, change the content?
I have a table, and one of the cells is for a "comment" field. If the comment is short enough to just be displayed in the field, I would like to just display the text. However, if the comment is too long, I instead what to put a little icon in the cell that would show the full comment in a Bootstrap popover.
I'm guessing I'd have to fill the cell with the content, somehow check for overflow, and then overwrite the cell with my code for the Bootstrap popover, but I'm just not sure how to check if the content will "fit" in the cell or not.