Skip to content

SingleIterationApplicationTemplate

Antoine Théate edited this page Feb 27, 2023 · 6 revisions

This component handles the selection of an Iteration if there are many opened. If the user closes all opened Iteration while being inside an application, this component will automatically ask the user to open an Iteration.

All application that works with only one Iteration at the time should use that component. For example:

@inherits SingleIterationPageTemplate
<SingleIterationApplicationTemplate IterationId="@this.RequestedIteration">
    <Body>
        <ModelDashboardBody />
    </Body>
</SingleIterationApplicationTemplate>

The SingleIterationPageTemplate provides the RequestedIteration property and set the Authorize attribute

SingleIterationApplicationBase

The ModelDashboardBody components inherits from the SingleIterationApplicationBase component. This component gets an Iteration has CascadingParameter (the CascadingValue is provided by the SingleIterationApplicationTemplate) and also sets the correct URL based the current Iteration.

When inheriting this component, it is required to implement the InitializeValues. This method is used to set specific properties of the ViewModel based on the URL parameter (such as the selected Option, ...)