pub fn on_entity_with<V, P, O, F>(
entity: &Entity<V>,
f: F,
) -> OnUi<impl Fn(P, &mut App) -> Result<O, ActionError> + Send + Sync + 'static>Expand description
Like on_entity, but the action takes a typed parameter P (builds on
on_ui(|p, cx|)). Declare the schema with
ActionBuilder::params.