|
6 | 6 | <MudTransferList @ref="_transferList" T="string" @bind-StartCollection="_startCollection" @bind-EndCollection="_endCollection" Vertical="_vertical" Color="_color" |
7 | 7 | StyleListCommon="background-color: var(--mud-palette-background-gray); width: 200px" MultiSelection="_multiSelection" MaxItems="_maxItems" SelectAllType="_selectAllType" |
8 | 8 | PreventTransfer="@(new Func<bool, bool>(CheckTransfer))" OrderFunc="@(_orderOnTransfer == false ? null : new Func<ICollection<string>, ICollection<string>>(OrderMethod))" ButtonVariant="_buttonVariant" |
9 | | - AllowDoubleClick="_allowDoubleClick" SearchBoxStart="_searchboxStart" SearchBoxEnd="_searchboxEnd" |
| 9 | + AllowDoubleClick="_allowDoubleClick" SearchBoxStart="_searchboxStart" SearchBoxEnd="_searchboxEnd" Dense="_dense" |
10 | 10 | StartTitle="@_startTitle" EndTitle="@_endTitle" /> |
11 | 11 | </MudItem> |
12 | 12 |
|
|
21 | 21 | <MudSwitchM3 @bind-Value="_allowDoubleClick" Label="Allow Double Click" Color="Color.Secondary" /> |
22 | 22 | <MudSwitchM3 @bind-Value="_searchboxStart" Label="SearchBox Start" Color="Color.Secondary" /> |
23 | 23 | <MudSwitchM3 @bind-Value="_searchboxEnd" Label="SearchBox End" Color="Color.Secondary" /> |
| 24 | + <MudSwitchM3 @bind-Value="_dense" Label="Dense" Color="Color.Secondary" /> |
24 | 25 | <MudNumericField @bind-Value="_maxItems" Clearable="true" Label="MaxItems" Variant="Variant.Outlined" Margin="Margin.Dense" /> |
25 | 26 | <MudSelectExtended @bind-Value="_selectAllType" ItemCollection="@(Enum.GetValues<SelectAllType>())" Label="SelectAll Type" Variant="Variant.Outlined" Margin="Margin.Dense" Dense="true" /> |
26 | 27 | <MudSelectExtended @bind-Value="_color" ItemCollection="@(Enum.GetValues<Color>())" Label="Color" Variant="Variant.Outlined" Margin="Margin.Dense" Dense="true" /> |
|
36 | 37 | ICollection<string> _startCollection = new List<string>() { "Sweden", "Hungary", "Turkey", "England", "Egypt" }; |
37 | 38 | ICollection<string> _endCollection = new List<string>() { "Brazil", "China", "Germany", "USA", "South Africa" }; |
38 | 39 |
|
39 | | - bool _vertical; |
40 | | - bool _multiSelection; |
41 | | - bool _preventTurkeyTransfer; |
42 | | - bool _orderOnTransfer; |
43 | | - bool _allowDoubleClick; |
44 | | - bool _searchboxStart; |
45 | | - bool _searchboxEnd; |
46 | | - int? _maxItems; |
47 | | - SelectAllType _selectAllType = SelectAllType.Buttons; |
48 | | - Color _color = Color.Primary; |
49 | | - Variant _buttonVariant = Variant.Text; |
50 | | - string _startTitle = "Country Group 1"; |
51 | | - string _endTitle = "Country Group 2"; |
| 40 | + private bool _vertical; |
| 41 | + private bool _multiSelection; |
| 42 | + private bool _preventTurkeyTransfer; |
| 43 | + private bool _orderOnTransfer; |
| 44 | + private bool _allowDoubleClick; |
| 45 | + private bool _searchboxStart; |
| 46 | + private bool _searchboxEnd; |
| 47 | + private bool _dense; |
| 48 | + private int? _maxItems; |
| 49 | + private SelectAllType _selectAllType = SelectAllType.Buttons; |
| 50 | + private Color _color = Color.Primary; |
| 51 | + private Variant _buttonVariant = Variant.Text; |
| 52 | + private string _startTitle = "Country Group 1"; |
| 53 | + private string _endTitle = "Country Group 2"; |
52 | 54 |
|
53 | 55 | private bool CheckTransfer(bool startToEnd) |
54 | 56 | { |
|
0 commit comments