Skip to main content

Watched

Trait Watched 

Source
pub trait Watched<F> { }
Expand description

A field a condition can watch: a text, choice or custom field of the form F, passed to visible_when by reference.

A condition follows a toggle (Field::toggle, Field::toggle_input) through its checkbox, and any other control through its value: an app’s own checkbox control posts the same value checked or not, so a condition cannot follow it.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F> Watched<F> for ChoiceField<F>

Source§

impl<F> Watched<F> for CustomField<F>

Source§

impl<F> Watched<F> for TextField<F>