pub fn tooltip_provider(message: impl Into<String>) -> TooltipProviderBuilderExpand description
§tooltip_provider
Host a contextual explanation above page content for a control or action.
§Usage
Wrap a page and place its trigger inside tooltip_anchor.
§Parameters
message— supporting text shown in the popupvariant,headline— plain or rich appearance and optional rich titleaction_label,on_action— optional rich action, which dismisses the popupactions— custom rich actions, replacing the default text actioncontroller— optional shared visibility state for the provider and anchorplacement— preferred side, with edge avoidance and opposite-side fallbackpersistent— keep a touch-triggered popup open until dismissalmodifier— modifiers for the page-sized hostpopup_modifier— modifiers for the tooltip containerchild— page content, containing one anchor for this provider
§Examples
use tessera_components::tooltip::TooltipController;
let mut tooltip = TooltipController::new();
assert!(!tooltip.is_open());
tooltip.show();
assert!(tooltip.is_open());
tooltip.dismiss();
assert!(!tooltip.is_open());