Skip to content

Commit

Permalink
Autocomplete: add parameters SearchClass and SearchStyle (#5085)
Browse files Browse the repository at this point in the history
* Added SearchClass and SearchStyle to Autocomplete TextEdit

* Mentioned changes in docs
  • Loading branch information
steal4life authored Oct 18, 2023
1 parent 40571b0 commit 7a25f09
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@
<DocsAttributesItem Name="SearchTextColor" Type="TextColor" Default="null">
Defines the text color of the search field.
</DocsAttributesItem>
<DocsAttributesItem Name="SearchClass" Type="string" Default="null">
Defines the class for the search field.
</DocsAttributesItem>
<DocsAttributesItem Name="SearchStyle" Type="string" Default="null">
Defines the style for the search field.
</DocsAttributesItem>
<DocsAttributesItem Name="Closed" Type="EventCallback<AutocompleteClosedEventArgs>">
Event handler used to detect when the autocomplete is closed.
</DocsAttributesItem>
Expand Down
4 changes: 3 additions & 1 deletion Source/Extensions/Blazorise.Components/Autocomplete.razor
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
DebounceInterval="@DebounceInterval"
CustomValidationValue="@GetValidationValue"
Background="@SearchBackground"
TextColor="@SearchTextColor">
TextColor="@SearchTextColor"
Class="@SearchClass"
Style="@SearchStyle">
<Feedback>
<ValidationError />
<ValidationSuccess />
Expand Down
10 changes: 10 additions & 0 deletions Source/Extensions/Blazorise.Components/Autocomplete.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,16 @@ public string Search
/// </summary>
[Parameter] public TextColor SearchTextColor { get; set; }

/// <summary>
/// Defines class for search field.
/// </summary>
[Parameter] public string SearchClass { get; set; }

/// <summary>
/// Defines style for search field.
/// </summary>
[Parameter] public string SearchStyle { get; set; }

/// <summary>
/// Currently selected items values.
/// Used when multiple selection is set.
Expand Down

0 comments on commit 7a25f09

Please sign in to comment.