From 655978f480c32bc696f0d5fe2fff834bfbf238ea Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 15 Sep 2019 18:53:13 +0200 Subject: Draft nodes for missing widgets --- web/Cargo.toml | 5 ++++ web/examples/tour/index.html | 2 +- web/examples/tour/resources/ferris.png | 1 + web/examples/tour/src/tour.rs | 4 +-- web/src/widget.rs | 6 +--- web/src/widget/button.rs | 4 +-- web/src/widget/checkbox.rs | 39 ++++++++++++++++++++++-- web/src/widget/column.rs | 5 +++- web/src/widget/image.rs | 25 ++++++++++++++-- web/src/widget/radio.rs | 40 +++++++++++++++++++++++-- web/src/widget/row.rs | 5 +++- web/src/widget/slider.rs | 55 +++++++++++++++++++++++++++++++--- 12 files changed, 167 insertions(+), 24 deletions(-) create mode 120000 web/examples/tour/resources/ferris.png (limited to 'web') diff --git a/web/Cargo.toml b/web/Cargo.toml index 6d8c37b1..0ab89570 100644 --- a/web/Cargo.toml +++ b/web/Cargo.toml @@ -18,6 +18,7 @@ maintenance = { status = "actively-developed" } iced = { version = "0.1.0-alpha", path = ".." } dodrio = "0.1.0" futures = "0.1" +wasm-bindgen = "0.2.50" [dependencies.web-sys] version = "0.3.27" @@ -25,4 +26,8 @@ features = [ "console", "Document", "HtmlElement", + "HtmlInputElement", + "Event", + "EventTarget", + "InputEvent", ] diff --git a/web/examples/tour/index.html b/web/examples/tour/index.html index a639a6cb..527cc54c 100644 --- a/web/examples/tour/index.html +++ b/web/examples/tour/index.html @@ -2,7 +2,7 @@ - Tour - Iced Web + Web Tour - Iced