euv-example 0.3.12

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
18
use crate::*;

/// Reactive state for a todo list feature.
#[derive(Clone, Copy, Data, New)]
pub struct UseTodoList {
    /// The list of todo items.
    #[get(pub, type(copy))]
    #[set(pub)]
    pub items: Signal<Vec<String>>,
    /// The new item input text.
    #[get(pub, type(copy))]
    #[set(pub)]
    pub new_item: Signal<String>,
    /// The validation error message for add operation.
    #[get(pub, type(copy))]
    #[set(pub)]
    pub add_error: Signal<String>,
}