Looking for good blog posts / documentation on Master/Detail widgets
I don't feel like I understand how a widget handles Master/Detail views very well. I have worked with them, and gotten them to work, but I don't feel like I understand them fully. Has anyone documented them well on a blog post, or have some good example code I should review to better understand them? How did you learn master/detail widgets?
I am very comfortable with the concepts involved. I *think* my misunderstanding is with the internal routing that occurs when a widget has more than one view.
Hi Dan,
I assume you are talking about the widgets of the built-in modules (News, BlogPosts, etc.) They all inherit from ContentView and have child views in them. Master-detail scenarios are handled by knowing when to load which child view. Let's take the News widget as an example (NewsView class).
It has two child views - NewsMasterView and NewsDetailView. When you put it on a page, the widget itself has to decide whether to render in master or detail mode. It makes this decision based on several factors: