Skip to content

Commit

Permalink
Clarify that generated <kind>_clicked callbacks are aliases
Browse files Browse the repository at this point in the history
My assumption from reading the docs was that the `StandardButton`s
delegated to the root and that the generated callbacks in the root
were to facilitate that behavior.
  • Loading branch information
dragonrider7225 authored and ogoffart committed Jul 31, 2024
1 parent 17f71a3 commit 34f1a99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/reference/src/language/builtins/elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ There can't be several `StandardButton`s of the same kind.
A callback `<kind>_clicked` is automatically added for each `StandardButton` which doesn't have an explicit
callback handler, so it can be handled from the native code: For example if there is a button of kind `cancel`,
a `cancel_clicked` callback will be added.
Each of these automatically-generated callbacks is an alias for the `clicked` callback of the associated `StandardButton`.

### Properties

Expand Down

0 comments on commit 34f1a99

Please sign in to comment.