mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +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.
|
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}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue