This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# table_dt: DT::datatable | |
# tooltips: List of tooltips. Names = header names, values = tooltips. | |
# add_to_header_name: Will be appended to header name. Defaultly a question mark in circle. | |
# See https://getbootstrap.com/docs/3.3/components/ for more glyphicons | |
# tooltip_params: Parameters for Bootstrap's tooltip component. | |
# See https://getbootstrap.com/docs/3.4/javascript/#tooltips-options | |
# Will be converted to JSON with jsonlite::toJSON(tooltip_params, auto_unbox = TRUE) | |
# container = "body" is important as it always shows a tooltip on top of other elements. | |
dt_add_header_tooltips <- function( | |
table_dt, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Code chunks language tooltips" | |
output: | |
html_document: | |
theme: "united" | |
self_contained: true | |
--- | |
<!--You need to use Bootstrap theme (e.g. "united") to load dependencies. --> |