Node.js tutoria: Don't mention a main function

No such function exists
This commit is contained in:
Simon Hausmann 2023-11-06 17:50:38 +01:00 committed by Simon Hausmann
parent 7576ea71f2
commit 1a064e09a8

View file

@ -8,7 +8,7 @@ We can't modify the model generated by the .slint, but we can extract the tiles
in a [`slint.ArrayModel`](https://slint.dev/docs/node/classes/arraymodel.html) which implements the [`Model`](https://slint.dev/docs/node/interfaces/model.html) interface. in a [`slint.ArrayModel`](https://slint.dev/docs/node/classes/arraymodel.html) which implements the [`Model`](https://slint.dev/docs/node/interfaces/model.html) interface.
`ArrayModel` allows us to make modifications and we can use it to replace the static generated model. `ArrayModel` allows us to make modifications and we can use it to replace the static generated model.
We modify the main function like so: We modify `main.js` like so:
```js ```js
{{#include main_tiles_from_js.js:main}} {{#include main_tiles_from_js.js:main}}