Story:
I’d like to have a view model to implement logic in rendering files/photos. I’d like to re-use this viewmodel to utilize different types of views:
- List view - with small icons and text/etc
- Gallery view - with larger thumbnails and smaller text, etc.
Thoughts:
I understand there’s compose
which could help with this but I’m not sure how to separate out the modules so that I can dynamically swap in a different view based on a select value. For instance if the value of my select dropdown is list
I’d like to render view #1 and if its gallery
then I’d like to render number 2.
Any thoughts or suggestions would be appreciated.