Skip to content

Commit

Permalink
Update docs/astro/src/content/docs/guide/language/concepts/slint-lang…
Browse files Browse the repository at this point in the history
…uage.mdx

Co-authored-by: Simon Hausmann <[email protected]>
  • Loading branch information
NigelBreslaw and tronical authored Dec 9, 2024
1 parent 713ecc6 commit ebb1706
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Rectangle {

If you can understand this Slint code you already have grasped a majority of how simple to use the language is.
On line 2 we declare a `Button`. On line 3 we set its `text` property to `"Click me!"` and on line 4
callback is set to print out "Button clicked!" to the console via the built in `debug` function.
we set a callback to print out "Button clicked!" to the console via the built in `debug` function.

The Slint compiler will take this code and see it needs to generate a Rectangle that has a Button as a child.
Similarly, when the clicked callback activates, it will run the `debug` function. There is no need to think
Expand Down

0 comments on commit ebb1706

Please sign in to comment.