gt_hyperlink
=True) gt_hyperlink(text, url, new_tab
Create HTML hyperlinks for use in GT
object cells.
The gt_hyperlink()
function creates properly formatted HTML hyperlink elements that can be used within table cells.
Parameters
text : str
-
A string that will be displayed as the clickable link text.
url : str
-
A string indicating the destination URL for the hyperlink.
new_tab : bool = True
-
A boolean indicating whether the link should open in a new browser tab or the current tab.
Returns
: str
-
An string containing the HTML formatted hyperlink element.