HeaderExtensions¶
Razor helper extension that builds the policy dropdown list used by the policy header view component from the associations on a loaded PolicyHeader.
Purpose¶
- Produce a
SelectListof the policies related to the current one, ordered for display (BR-BOLMIDDLEWARE-015).
Context¶
- Namespace:
BolMiddleware.Extensions - Assembly/package:
BolMiddleware
Public members¶
| Member | Signature | Purpose |
|---|---|---|
GetPolicyAssociationDropdown |
static SelectList GetPolicyAssociationDropdown(this IHtmlHelper html, PolicyHeader header) |
Builds the select list of associated policies with the current policy selected, for the policyselectvalue control. |
Behavioral notes¶
- The list content depends on associations already filtered in
PolicyHeaderService(BR-BOLMIDDLEWARE-013).
Constraints and usage notes¶
- Call it only when the header has been loaded; a null header is not guarded.
Sources¶
- src/BolMiddleware/Extensions/HeaderExtensions.cs