pub trait ValidationDelegate {
    // Required method
    fn event(
        &mut self,
        ctx: &mut EventCtx<'_, '_>,
        event: TextBoxEvent,
        current_text: &str
    );
}
Expand description

A type that can be registered to receive callbacks as the state of a ValueTextBox changes.

Required Methods§

fn event( &mut self, ctx: &mut EventCtx<'_, '_>, event: TextBoxEvent, current_text: &str )

Called with a TextBoxEvent whenever the validation state of a ValueTextBox changes.

Implementors§