mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 22:54:36 +00:00
tutorial, remove hardcoded release from url
That's how the other tutorial do it
This commit is contained in:
parent
34f41f35f1
commit
645824ae7a
1 changed files with 2 additions and 2 deletions
|
@ -2,9 +2,9 @@
|
|||
|
||||
What we'll do is take the list of tiles declared in the .slint language, duplicate it, and shuffle it.
|
||||
We'll do so by accessing the `memory_tiles` property through the JavaScript code - in our case `memory_tiles`.
|
||||
Since `memory_tiles` is an array in the `.slint` language, it's represented as a JavaScript [`Array`](https://slint-ui.com/releases/0.3.5/docs/node/).
|
||||
Since `memory_tiles` is an array in the `.slint` language, it's represented as a JavaScript [`Array`](https://slint-ui.com/docs/node/).
|
||||
We can't modify the model generated by the .slint, but we can extract the tiles from it, and put it
|
||||
in a [`slint.ArrayModel`](https://slint-ui.com/releases/0.3.5/docs/node/classes/arraymodel.html) which implements the [`Model`](https://slint-ui.com/releases/0.3.5/docs/node/interfaces/model.html) interface.
|
||||
in a [`slint.ArrayModel`](https://slint-ui.com/docs/node/classes/arraymodel.html) which implements the [`Model`](https://slint-ui.com/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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue