Merge pull request #4567 from sbwalker/dev

change parameter name to AllowTextInput for clarity
This commit is contained in:
Shaun Walker 2024-08-26 10:47:29 -04:00 committed by GitHub
commit b81941394c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@
@if (_searchResultsPage != null)
{
@if (AllowInput)
@if (AllowTextInput)
{
<span class="app-search @CssClass">
<form method="post" class="app-form-inline" @formname="@($"SearchForm")" @onsubmit="@PerformSearch" data-enhance>
@ -43,7 +43,7 @@
public string CssClass { get; set; }
[Parameter]
public bool AllowInput { get; set; } = true; // setting to false will display only the search icon button - not the textbox
public bool AllowTextInput { get; set; } = true; // setting to false will display only the search icon button - not the textbox
[Parameter]
public string SearchResultPagePath { get; set; } = "search"; // setting to "" will disable search