Browse Source
Merge pull request #16096 from abpframework/liangshiwei/taghelper
Add AutocompleteParentSelector to AbpSelectTagHelper
pull/16101/head
maliming
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
0 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpSelectTagHelper.cs
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpSelectTagHelperService.cs
|
|
|
@ -37,6 +37,8 @@ public class AbpSelectTagHelper : AbpTagHelper<AbpSelectTagHelper, AbpSelectTagH |
|
|
|
public string AutocompleteSelectedItemName { get; set; } |
|
|
|
|
|
|
|
public string AutocompleteSelectedItemValue { get; set; } |
|
|
|
|
|
|
|
public string AutocompleteParentSelector { get; set; } |
|
|
|
|
|
|
|
public string AllowClear { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
@ -125,6 +125,7 @@ public class AbpSelectTagHelperService : AbpTagHelperService<AbpSelectTagHelper> |
|
|
|
output.Attributes.Add("data-autocomplete-selected-item-value", TagHelper.AutocompleteSelectedItemValue); |
|
|
|
output.Attributes.Add("data-autocomplete-allow-clear", TagHelper.AllowClear); |
|
|
|
output.Attributes.Add("data-autocomplete-placeholder", TagHelper.Placeholder); |
|
|
|
output.Attributes.Add("data-autocomplete-parent-selector", TagHelper.AutocompleteParentSelector); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|