Browse Source
Refactor LookupExtensionProperty to nest Autocomplete within Validation component
pull/24906/head
maliming
6 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
13 additions and
12 deletions
-
framework/src/Volo.Abp.BlazoriseUI/Components/ObjectExtending/LookupExtensionProperty.razor
|
|
|
@ -6,16 +6,17 @@ |
|
|
|
|
|
|
|
<Field> |
|
|
|
<FieldLabel>@PropertyInfo.GetLocalizedDisplayName(StringLocalizerFactory)</FieldLabel> |
|
|
|
<Autocomplete Data="@lookupItems" |
|
|
|
TItem="SelectItem<object>" |
|
|
|
TValue="object" |
|
|
|
TextField="item => item?.Text!" |
|
|
|
ValueField="item => item?.Value!" |
|
|
|
SelectedValue="@SelectedValue" |
|
|
|
SelectedValueChanged="@SelectedValueChanged" |
|
|
|
SearchChanged="@SearchFilterChangedAsync" |
|
|
|
Validator="@Validate" |
|
|
|
MinSearchLength="0" |
|
|
|
Disabled="IsReadonlyField"> |
|
|
|
</Autocomplete> |
|
|
|
<Validation Validator="@Validate"> |
|
|
|
<Autocomplete Data="@lookupItems" |
|
|
|
TItem="SelectItem<object>" |
|
|
|
TValue="object" |
|
|
|
TextField="item => item?.Text!" |
|
|
|
ValueField="item => item?.Value!" |
|
|
|
SelectedValue="@SelectedValue" |
|
|
|
SelectedValueChanged="@SelectedValueChanged" |
|
|
|
SearchChanged="@SearchFilterChangedAsync" |
|
|
|
MinSearchLength="0" |
|
|
|
Disabled="IsReadonlyField"> |
|
|
|
</Autocomplete> |
|
|
|
</Validation> |
|
|
|
</Field> |
|
|
|
|