Extracts the (plain-text) tooltip configured for each worksheet. Tableau stores customised tooltips as formatted-text runs; this returns the concatenated text with markup stripped.
Value
A tibble with columns:
- sheet
Worksheet name.
- is_customized
TRUEif a non-empty customised tooltip is present.- tooltip_text
Plain-text tooltip content, or
NA.
Examples
xml <- xml2::read_xml(
'<workbook><worksheets><worksheet name="Sales">
<customized-tooltip><formatted-text>
<run>Sales: </run><run><SUM(Sales)></run>
</formatted-text></customized-tooltip>
</worksheet></worksheets></workbook>'
)
twb_tooltips(xml)
#> # A tibble: 1 × 3
#> sheet is_customized tooltip_text
#> <chr> <lgl> <chr>
#> 1 Sales TRUE Sales: <SUM(Sales)>
