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 | 5 | 2442 | August 23, 2019 | |
| Input.select not available in Elm-UI? | 6 | 2979 | January 15, 2019 | |
| Update functions getting called twice with one click event | 4 | 1033 | June 6, 2021 | |
| New Confidenceman02/elm-select features! | 3 | 562 | January 11, 2023 | |
| Update a node in a tree | 18 | 3499 | July 5, 2018 |