Put a tip on any HTML tag. The tip is plain text, or a named template filled from the values of one item, such as a
row of a table. Start with tip_on(); name templates with tip_define() and build
them with tip_template() and the block functions (tip_title() and friends). The tips are drawn by one small
JavaScript file that ships with the package, so nothing needs installing in the browser.
Stable and experimental
in 0.1.x:
tip_on() with text, template, record, placement, id, pin (one
pinned tip at a time), more and a preset name as style; use_hovercraft() with a preset name; tip_presets();
tip_template(), tip_define(), tip_title(), tip_text(), tip_badge(), tip_fields() and tip_code(). The
names of the inputs (_hint, _pin, _pinned, _copy, _retry) do not change.
and free to change:
tip_table() and tip_spec(); events and the fields of
the input values; tip_show(), tip_hide() and tip_update(); when_disabled; tip_output(); tip_style(),
tip_theme() and tip_marker(), and style or marker given those objects; tip_more(); max_pins and keys
of use_hovercraft(); and hovercraft_book().
Known limits
Each is also on the page of the function it belongs to. Server calls reach only tags that are on the page and drawn
at that moment. A pin closes when its item is removed or hidden by a tab, a conditional panel or a sidebar, and a
DT table in server mode has only the rows of the current page on the screen. The inputs are NULL until their
first event. A page without Shiny (R Markdown, Quarto, a static page) has no inputs, server calls or live outputs.
On a viewport narrower than 600 pixels the engine keeps one pin at a time. A tag inside
bslib::tooltip() or bslib::popover() keeps the tip that bslib draws. Reconnecting an app is untested.
Author
Maintainer: Harsh Verma analyticswithharsh@gmail.com (Copyright holder of the package and of the bundled tip engine) [copyright holder]
Authors:
Harsh Verma analyticswithharsh@gmail.com (Copyright holder of the package and of the bundled tip engine) [copyright holder]