Skip to contents

Apply tooltip to a full gloss

Usage

gloss_linetooltip(original, parsed)

Arguments

original

Text to show in the tooltip rendering.

parsed

Text to show as tooltip when hovering

Value

List of shiny.tag

Examples

ex_sp <- "Un ejemplo en español"
ex_gloss <- "DET.M.SG example in Spanish"
gloss_linetooltip(ex_sp, ex_gloss)
#> [[1]]
#> <span data-toggle="tooltip" title="DET.M.SG"> Un </span>
#> 
#> [[2]]
#> <span data-toggle="tooltip" title="example"> ejemplo </span>
#> 
#> [[3]]
#> <span data-toggle="tooltip" title="in"> en </span>
#> 
#> [[4]]
#> <span data-toggle="tooltip" title="Spanish"> español </span>
#>