pub fn data<T: VarValue>(
child: impl IntoUiNode,
data: impl IntoVar<T>,
) -> UiNodeExpand description
P Data context.
Sets the DATA context for this widget and descendants, replacing the parent’s data.
Note that only one data context can be set at a time, the data will override the parent’s
data even if the type T does not match.