Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete: add parameters SearchClass and SearchStyle #5085

Merged
merged 2 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading