From fe7648ef2f4a9245701f7bddbc6ca42198a94d92 Mon Sep 17 00:00:00 2001 From: steal4life Date: Wed, 18 Oct 2023 17:08:36 +0200 Subject: [PATCH 1/2] Added SearchClass and SearchStyle to Autocomplete TextEdit --- .../Extensions/Blazorise.Components/Autocomplete.razor | 4 +++- .../Blazorise.Components/Autocomplete.razor.cs | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Source/Extensions/Blazorise.Components/Autocomplete.razor b/Source/Extensions/Blazorise.Components/Autocomplete.razor index 23fd1363f5..0582d34229 100644 --- a/Source/Extensions/Blazorise.Components/Autocomplete.razor +++ b/Source/Extensions/Blazorise.Components/Autocomplete.razor @@ -43,7 +43,9 @@ DebounceInterval="@DebounceInterval" CustomValidationValue="@GetValidationValue" Background="@SearchBackground" - TextColor="@SearchTextColor"> + TextColor="@SearchTextColor" + Class="@SearchClass" + Style="@SearchStyle"> diff --git a/Source/Extensions/Blazorise.Components/Autocomplete.razor.cs b/Source/Extensions/Blazorise.Components/Autocomplete.razor.cs index 6c06007004..380caf3f54 100644 --- a/Source/Extensions/Blazorise.Components/Autocomplete.razor.cs +++ b/Source/Extensions/Blazorise.Components/Autocomplete.razor.cs @@ -1387,6 +1387,16 @@ public string Search /// [Parameter] public TextColor SearchTextColor { get; set; } + /// + /// Defines class for search field. + /// + [Parameter] public string SearchClass { get; set; } + + /// + /// Defines style for search field. + /// + [Parameter] public string SearchStyle { get; set; } + /// /// Currently selected items values. /// Used when multiple selection is set. From 13a1775d8d95e1f749fa758ddf2b82c5ce53552c Mon Sep 17 00:00:00 2001 From: steal4life Date: Wed, 18 Oct 2023 17:08:51 +0200 Subject: [PATCH 2/2] Mentioned changes in docs --- .../Docs/Extensions/Autocomplete/AutocompletePage.razor | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/Blazorise.Docs/Pages/Docs/Extensions/Autocomplete/AutocompletePage.razor b/Documentation/Blazorise.Docs/Pages/Docs/Extensions/Autocomplete/AutocompletePage.razor index 26adbc4133..657102a99e 100644 --- a/Documentation/Blazorise.Docs/Pages/Docs/Extensions/Autocomplete/AutocompletePage.razor +++ b/Documentation/Blazorise.Docs/Pages/Docs/Extensions/Autocomplete/AutocompletePage.razor @@ -268,6 +268,12 @@ Defines the text color of the search field. + + Defines the class for the search field. + + + Defines the style for the search field. + Event handler used to detect when the autocomplete is closed.