MCPcopy Create free account
hub / github.com/angular-rust/yew-components / validity_transform

Method validity_transform

src/select.rs:255–259  ·  view source on GitHub ↗

Returns [`ValidityTransform`] to be passed to `validity_transform` prop

(
        func: F,
    )

Source from the content-addressed store, hash-verified

253impl Select {
254 /// Returns [`ValidityTransform`] to be passed to `validity_transform` prop
255 pub fn validity_transform<F: Fn(String, NativeValidityState) -> ValidityState + 'static>(
256 func: F,
257 ) -> ValidityTransform {
258 ValidityTransform::new(func)
259 }
260}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected