This repository was archived by the owner on Apr 9, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathInputSelect2Options.cs
More file actions
78 lines (64 loc) · 2.95 KB
/
InputSelect2Options.cs
File metadata and controls
78 lines (64 loc) · 2.95 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
using Newtonsoft.Json;
using System.Collections.Generic;
namespace KeudellCoding.Blazor.AdvancedBlazorSelect2 {
public class InputSelect2Options {
[JsonProperty("adaptContainerCssClass")]
public object AdaptContainerCssClass { get; set; } = null;
[JsonProperty("adaptDropdownCssClass")]
public object AdaptDropdownCssClass { get; set; } = null;
[JsonProperty("ajax")]
public object Ajax { get; set; } = null;
[JsonProperty("allowClear")]
public bool AllowClear { get; set; } = true;
[JsonProperty("amdBase")]
public string AmdBase { get; set; } = "./";
[JsonProperty("amdLanguageBase")]
public string AmdLanguageBase { get; set; } = "./i18n/";
[JsonProperty("closeOnSelect")]
public bool CloseOnSelect { get; set; } = true;
[JsonProperty("containerCss")]
public object ContainerCss { get; set; } = null;
[JsonProperty("containerCssClass")]
public string ContainerCssClass { get; set; } = string.Empty;
//[JsonProperty("data")]
//public IList<Select2Item> DefaultData { get; set; }
[JsonProperty("debug")]
public bool Debug { get; set; } = false;
[JsonProperty("disabled")]
public bool Disabled { get; set; } = false;
[JsonProperty("dropdownAutoWidth")]
public bool DropdownAutoWidth { get; set; } = false;
[JsonProperty("dropdownCss")]
public object DropdownCss { get; set; } = null;
[JsonProperty("dropdownCssClass")]
public string DropdownCssClass { get; set; } = string.Empty;
[JsonProperty("maximumInputLength")]
public int MaximumInputLength { get; set; } = 0;
[JsonProperty("maximumSelectionLength")]
public int MaximumSelectionLength { get; set; } = 0;
[JsonProperty("minimumInputLength")]
public int MinimumInputLength { get; set; } = 0;
[JsonProperty("minimumResultsForSearch")]
public int MinimumResultsForSearch { get; set; } = 0;
[JsonProperty("multiple")]
public bool Multiple { get; set; } = false;
[JsonProperty("placeholder")]
public string Placeholder { get; set; } = string.Empty;
[JsonProperty("selectOnClose")]
public bool SelectOnClose { get; set; } = false;
//[JsonProperty("tags")]
//public bool Tags { get; set; } = false;
[JsonProperty("theme")]
public string Theme { get; set; } = "default";
[JsonProperty("tokenSeparators")]
public HashSet<char> TokenSeparators { get; set; } = new HashSet<char> { };
[JsonProperty("width")]
public string Width { get; set; } = "100%";
[JsonProperty("scrollAfterSelect")]
public bool ScrollAfterSelect { get; set; } = false;
[JsonProperty("noMarkupEscape")]
public bool NoMarkupEscape { get; set; } = true;
[JsonProperty("tags")]
public bool Tags { get; set; } = false;
}
}