Closed ryantimpe closed 2 years ago
LGTM!
I'll revisit whether to combine this into gt_img_row()
proper but I think that this being a stand-alone function is a great start, thanks for the PR!!!
Checks are failing because of updated fontawesome
and changed icons... will need to revisit separately, but going to merge. Thanks!
Hi @jthomasmock
Following up on our Twitter exchange, I've added a version of the
gt_img_rows()
function that can take a nested column of image address and render them each within a cell.Not sure how/if you want this to fit within the package, as some of the text/html parsing is a bit hacky and there might be an better way. For now, the function is nearly identical to
gt_img_rows()
, except it diverges at the text_transform function to first break the contents of the arrays inside the list into individuals divs.Few notes:
gt_img_rows()
. So you could swap outgt_img_rows()
withgt_img_multi_rows()
in any existing table and get the same visual result.tidyr::nest()
and that column is passed togt_img_multi_rows()
, the contents will be concatenated, without any reference to the original column names. Not sure of a practical use for this, but at least its a fail safe.