etiennebacher / prompter

Add tooltips in Shiny apps with hint.css
https://prompter.etiennebacher.com/
Other
41 stars 1 forks source link

Is it possible to add picture #7

Closed Lee0498 closed 2 years ago

Lee0498 commented 2 years ago

Hello, thanks for your contribution to add tooltip-like modal into shiny! I just wonder if it is possible to add picture in replacement of message through your package? Here is my attemption, but it doesn't work. I really need your help! Thanks again.

prompter::add_prompt(
                tags$a(
                    id = "wechat-hover",
                    type = "button",
                    title = NULL,
                    icon("wechat")
                ),
                position = "bottom",
                message = "this is a prompt",
                icon("wechat")
            )
etiennebacher commented 2 years ago

Hello, unfortunately I don't think that the CSS library that prompter uses makes it possible to include images (see https://github.com/chinchang/hint.css/issues/82) or icons (see https://github.com/chinchang/hint.css/issues/186) in tooltips.

Lee0498 commented 2 years ago

Hello, unfortunately I don't think that the CSS library that prompter uses makes it possible to include images (see chinchang/hint.css#82) or icons (see chinchang/hint.css#186) in tooltips.

Tnanks for your instantly reply!