For custom components that have many different landing pages
When writing custom components you need to keep in mind that you need to design things in such a way that the user will be able to access all landing pages.
<DesignViewSelector> <button @onclick="@(e => SetView(""))" class="lisa-tool-icon-menu-button" title="The default list view">Default list view</button> <button @onclick="@(e => SetView("Error"))" class="lisa-tool-icon-menu-button" title="Content shown if there is an error">Error</button> <button @onclick="@(e => SetView("Loading"))" class="lisa-tool-icon-menu-button" title="Content shown while the data is being fetched">Loading</button> <button @onclick="@(e => SetView("Confirm"))" class="lisa-tool-icon-menu-button" title="Content shown when user needs to confirm">Confirm</button> <button @onclick="@(e => SetView("Done"))" class="lisa-tool-icon-menu-button" title="Content shown when the process is done">Done</button> </DesignViewSelector> @if (View == "Loading") { <div class="form-submitted"> <div>This area is shown when the data is being fetched.</div> </div> }