What Are Conditional Content and List Data?
Before diving into the techniques for outputting conditional content or list content, it is important to understand what exactly is meant by those terms.
Conditional content simply means any kind of content that should only be displayed under certain circumstances. Examples are as follows:
- Error overlays that should only show up if a user submits incorrect data in a form
- Additional form input fields that appear once the user chooses to enter extra details (such as business details)
- A loading spinner that is displayed while data is sent or fetched to or from a backend server
- A side navigation menu that slides into view when the user clicks on a menu button
This is just a very short list of a few examples. You could, of course, come up with hundreds of additional examples. But it should be clear what all these examples are about in the end: visual elements or entire sections of the user interface that are only shown if certain conditions are...