show input value in spreadsheet example
@@ -79,6 +79,7 @@ fn main() {
let cell_c = cell.clone();
let mut inp_c = inp.clone();
+ let data_c = data.clone();
table.handle(move |ev| match ev {
Event::Push => {
@@ -86,6 +87,7 @@ fn main() {
// double clicks
let c = cell_c.borrow();
inp_c.resize(c._x, c._y, c._w, c._h);
+ inp_c.set_value(&data_c.borrow_mut()[c._row as usize][c._col as usize]);
inp_c.show();
return true;
}
