Unverified Commit 95f04e81 authored by Florian Blasius's avatar Florian Blasius 🤘 Committed by GitHub

Merge pull request #433 from rzerres/develop

documentation update
parents 09d82be2 f634ffb3
......@@ -63,8 +63,8 @@ impl<'a> Context<'a> {
self.entity
}
/// Changes the current `Context` into `another` widget's context.
/// Don't forget to change back to the original context after done using the altered context.
/// Switch current `Context` to context of given widget `another`.
/// Don't forget to change back to the original context once you are done.
pub fn change_into(&mut self, another: Entity) {
self.entity = another;
}
......
......@@ -91,8 +91,8 @@ widget!(
/// let next_button = Button::new()
/// .enabled(("next_enabled", pager))
/// .text("next")
/// .on_click(move |ctx, _| {
/// ctx.send_message(PagerAction::Next, pager);
/// .on_click(move |states, _| {
/// states.send_message(PagerAction::Next, pager);
/// true
/// })
/// .build(ctx);
......@@ -101,7 +101,7 @@ widget!(
/// .enabled(("previous_enabled", pager))
/// .text("previous")
/// .on_click(move |states, _| {
/// ctx.send_message(PagerAction::Next, pager);
/// states.send_message(PagerAction::Previous, pager);
/// true
/// })
/// .build(ctx);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment