pub trait ToggleSwitchProps: ElementBuilder {
// Provided methods
fn off_content<M>(self, value: impl IntoProp<Option<BoxedValue>, M>) -> Self { ... }
fn off_content_template<M>(
self,
value: impl IntoProp<Option<Rc<dyn IDataTemplate>>, M>,
) -> Self { ... }
fn on_content<M>(self, value: impl IntoProp<Option<BoxedValue>, M>) -> Self { ... }
fn on_content_template<M>(
self,
value: impl IntoProp<Option<Rc<dyn IDataTemplate>>, M>,
) -> Self { ... }
fn knob_transitions<M>(
self,
value: impl IntoProp<Option<Transitions>, M>,
) -> Self { ... }
}Expand description
The properties and routed events of ToggleSwitch.
Provided Methods§
Sourcefn off_content<M>(self, value: impl IntoProp<Option<BoxedValue>, M>) -> Self
fn off_content<M>(self, value: impl IntoProp<Option<BoxedValue>, M>) -> Self
Sourcefn off_content_template<M>(
self,
value: impl IntoProp<Option<Rc<dyn IDataTemplate>>, M>,
) -> Self
fn off_content_template<M>( self, value: impl IntoProp<Option<Rc<dyn IDataTemplate>>, M>, ) -> Self
Sourcefn on_content<M>(self, value: impl IntoProp<Option<BoxedValue>, M>) -> Self
fn on_content<M>(self, value: impl IntoProp<Option<BoxedValue>, M>) -> Self
Sourcefn on_content_template<M>(
self,
value: impl IntoProp<Option<Rc<dyn IDataTemplate>>, M>,
) -> Self
fn on_content_template<M>( self, value: impl IntoProp<Option<Rc<dyn IDataTemplate>>, M>, ) -> Self
Sourcefn knob_transitions<M>(
self,
value: impl IntoProp<Option<Transitions>, M>,
) -> Self
fn knob_transitions<M>( self, value: impl IntoProp<Option<Transitions>, M>, ) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".