Sorry, I have no code to share. But when you change the main category you’re free to update your model any way you want that makes sense – like changing the sub category to something. Since your view is just a projection of your model it will automatically show the right thing.
lydell
12
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to update an HTML element when the model changes | 4 | 2469 | August 13, 2019 | |
| Input.select not available in Elm-UI? | 5 | 3003 | January 5, 2019 | |
| Update functions getting called twice with one click event | 3 | 1044 | May 27, 2021 | |
| New Confidenceman02/elm-select features! | 2 | 582 | January 1, 2023 | |
| Update a node in a tree | 17 | 3553 | June 25, 2018 |