pub fn anchor(child: impl UiNode, anchor: impl IntoVar<Txt>) -> impl UiNode
Expand description
P
Set a label that identifies the widget in the context of the parent markdown.
The anchor can be retried in the widget info using WidgetInfoExt::anchor
. It is mostly used
by markdown links to find scroll targets.