diff options
author | 2022-02-12 17:21:28 +0700 | |
---|---|---|
committer | 2022-02-12 17:21:28 +0700 | |
commit | bd22cc0bc0f7551d29cf2acd22520f4a906f253c (patch) | |
tree | fae6435d0e1500204fca73fa7872fb99a41b6eb4 /examples/pure/todos/index.html | |
parent | e3108494e5886c34312184292ec05dddeb8bf3ca (diff) | |
download | iced-bd22cc0bc0f7551d29cf2acd22520f4a906f253c.tar.gz iced-bd22cc0bc0f7551d29cf2acd22520f4a906f253c.tar.bz2 iced-bd22cc0bc0f7551d29cf2acd22520f4a906f253c.zip |
Implement pure version of `todos` example :tada:
The `Widget` trait in `iced_pure` needed to change a bit to make the
implementation of `Element::map` possible.
Specifically, the `children` method has been split into `diff` and
`children_state`.
Diffstat (limited to '')
-rw-r--r-- | examples/pure/todos/index.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/pure/todos/index.html b/examples/pure/todos/index.html new file mode 100644 index 00000000..ee5570fb --- /dev/null +++ b/examples/pure/todos/index.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <title>Todos - Iced</title> + <base data-trunk-public-url /> +</head> +<body> +<link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="z" data-bin="todos" /> +</body> +</html> |