Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
petrnymsa committed Mar 26, 2024
1 parent 14d87cb commit 3a69cff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glade_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ onChange: (info, dependencies) {

![two-way-inputs-example](https://raw.githubusercontent.com/netglade/glade_forms/main/glade_forms/doc/two-way-dependencies.gif)

Second approach is to use `dependencies` and `onDependencyChange` callback and react when different input was changed.
The second approach is to use `dependencies` and `onDependencyChange` callback and react when different dependencies are changed. Note that it works with groupEdit() as well. In that case, onDependencyChange is called once for every changed dependency.

In this example, when age-input updats its value (dependency), checkbox's value (vipInput) is updated.
In this example, when age-input update its value (dependency), checkbox's value (vipInput) is updated.

```dart
vipInput = GladeInput.create(
Expand Down

0 comments on commit 3a69cff

Please sign in to comment.