/
SearchBoxSettings.cs
52 lines (43 loc) · 1.33 KB
/
SearchBoxSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace Havit.Blazor.Components.Web.Bootstrap;
/// <summary>
/// Settings for the <see cref="HxSearchBox{TItem} "/> and derived components.
/// </summary>
public class SearchBoxSettings
{
/// <summary>
/// Icon displayed in input when no item is selected.
/// </summary>
public IconBase SearchIcon { get; set; }
/// <summary>
/// Icon displayed in input on selection clear button when item is selected.
/// </summary>
public IconBase ClearIcon { get; set; }
/// <summary>
/// Minimal number of characters to start suggesting.
/// </summary>
public int? MinimumLength { get; set; }
/// <summary>
/// Debounce delay in miliseconds.
/// </summary>
public int? Delay { get; set; }
/// <summary>
/// Input size.
/// </summary>
public InputSize? InputSize { get; set; }
/// <summary>
/// Additional CSS classes for the wrapping <c>div</c>.
/// </summary>
public string CssClass { get; set; }
/// <summary>
/// Additional CSS classes for the items in the dropdown menu.
/// </summary>
public string ItemCssClass { get; set; }
/// <summary>
/// Additional CSS classes for the search box input.
/// </summary>
public string InputCssClass { get; set; }
/// <summary>
/// If true, the first suggestion is highlighted until another is chosen by the user.
/// </summary>
public bool? HighlightFirstSuggestion { get; set; }
}