mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 14:51:15 +00:00
Node.js tutoria: Don't mention a main function
No such function exists
This commit is contained in:
parent
7576ea71f2
commit
1a064e09a8
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
`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
|
||||
{{#include main_tiles_from_js.js:main}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue