node: api review adjustements part I (#3766)

* Update api/node/src/types/brush.rs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update tests/cases/callbacks/handler_with_arg.slint

Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
This commit is contained in:
Florian Blasius 2023-10-26 10:02:49 +02:00 committed by GitHub
parent 081e7fe456
commit 0045787e1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 340 additions and 142 deletions

View file

@ -12,12 +12,12 @@ window.ink_levels = [
{ color: "#ffff00", level: 0.60 },
{ color: "#000000", level: 0.90 }];
window.fax_number_erase.setHandler(function () {
window.fax_number_erase = function () {
window.fax_number = window.fax_number.substring(0, window.fax_number.length - 1);
})
window.fax_send.setHandler(function () {
};
window.fax_send = function () {
console.log("Send fax to " + window.fax_number);
window.fax_number = "";
})
};
window.run();