AdminDictSelect Component
Overview
A data dictionary dropdown component. Automatically loads all dictionary items under the specified dictionary category as dropdown options, supporting single selection.
Parameters
| Parameter | Description |
|---|---|
| @bind-Value | Bind the selected value |
| ParentName | Dictionary category name (required), e.g., "order_type" |
| DisplayText | Form display label |
| CacheDuration | Cache duration (seconds), default 300 |
Usage Example
<AdminDictSelect @bind-Value="@orderType"
ParentName="order_type"
DisplayText="Order Type" />
Notes
ParentNamemust correspond to an existing category name in the data dictionary- Data is cached; changes to the dictionary will only take effect after the cache expires or the application is restarted