euv-example 0.3.11

An example application demonstrating the euv UI framework with reactive signals, custom components, and WebAssembly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::*;

/// Provides a default empty modal state with all signals initialized to their zero values.
impl Default for UseModal {
    fn default() -> Self {
        UseModal {
            show_basic: Signal::new(false),
            show_confirm: Signal::new(false),
            show_form: Signal::new(false),
            confirm_result: Signal::new("".to_string()),
            modal_name: Signal::new("".to_string()),
            modal_email: Signal::new("".to_string()),
            modal_submitted: Signal::new("".to_string()),
            modal_error: Signal::new("".to_string()),
        }
    }
}