mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Node.js: Don't use deprecated syntax
This commit is contained in:
parent
5a93bbcf7e
commit
29fdac89ab
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ without pre-built binaries, you need to additional software:
|
|||
|
||||
```
|
||||
import { AboutSlint, Button, VerticalBox } from "std-widgets.slint";
|
||||
export component Demo {
|
||||
export component Demo inherits Window {
|
||||
in-out property <string> greeting <=> label.text;
|
||||
VerticalBox {
|
||||
alignment: start;
|
||||
|
@ -93,7 +93,7 @@ For a complete example, see [/examples/todo/node](https://github.com/slint-ui/sl
|
|||
|
||||
```
|
||||
import { AboutSlint, Button, VerticalBox } from "std-widgets.slint";
|
||||
export component Demo {
|
||||
export component Demo inherits Window {
|
||||
in-out property <string> greeting <=> label.text;
|
||||
VerticalBox {
|
||||
alignment: start;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue