summaryrefslogtreecommitdiffstats
path: root/examples/lazy
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-12 04:13:36 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-12 04:19:45 +0200
commite6a93e960c3ac71a74f11555fd2d225c185f6e8c (patch)
tree3bda6043c7b2840f3414e9e5fbf7e869077f0e27 /examples/lazy
parentf10e936f00d4b83dcacfdebd2727b1a5cd1add95 (diff)
downloadiced-e6a93e960c3ac71a74f11555fd2d225c185f6e8c.tar.gz
iced-e6a93e960c3ac71a74f11555fd2d225c185f6e8c.tar.bz2
iced-e6a93e960c3ac71a74f11555fd2d225c185f6e8c.zip
Rename `on_change` to `on_input` for `TextInput`
Diffstat (limited to 'examples/lazy')
-rw-r--r--examples/lazy/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/lazy/src/main.rs b/examples/lazy/src/main.rs
index 6b6dca26..55b13bcf 100644
--- a/examples/lazy/src/main.rs
+++ b/examples/lazy/src/main.rs
@@ -215,7 +215,7 @@ impl Sandbox for App {
scrollable(options).height(Length::Fill),
row![
text_input("Add a new option", &self.input)
- .on_change(Message::InputChanged)
+ .on_input(Message::InputChanged)
.on_submit(Message::AddItem(self.input.clone())),
button(text(format!("Toggle Order ({})", self.order)))
.on_press(Message::ToggleOrder)