|
5 | 5 | <MudTransferList @ref="_transferList" T="string" @bind-StartCollection="_startCollection" @bind-EndCollection="_endCollection" Vertical="_vertical" Color="_color" |
6 | 6 | StyleListCommon="background-color: var(--mud-palette-background-grey); width: 200px" MultiSelection="_multiSelection" MaxItems="_maxItems" SelectAllType="_selectAllType" |
7 | 7 | PreventTransfer="@(new Func<bool, bool>(CheckTransfer))" OrderFunc="@(_orderOnTransfer == false ? null : new Func<ICollection<string>, ICollection<string>>(OrderMethod))" ButtonVariant="_buttonVariant" |
8 | | - AllowDoubleClick="_allowDoubleClick" /> |
| 8 | + AllowDoubleClick="_allowDoubleClick" SearchBoxStart="_searchboxStart" SearchBoxEnd="_searchboxEnd" |
| 9 | + StartTitle="@_startTitle" EndTitle="@_endTitle" /> |
9 | 10 | </MudItem> |
10 | 11 |
|
11 | 12 | <MudItem xs="12" sm="4"> |
12 | 13 | <MudStack Spacing="4"> |
13 | 14 | <MudText><b>Start Collection:</b> @string.Join(", ", _startCollection ?? new List<string>())</MudText> |
14 | 15 | <MudText><b>End Collection:</b> @string.Join(", ", _endCollection ?? new List<string>())</MudText> |
15 | | - <MudSwitchM3 @bind-Checked="_vertical" Label="Vertical" Color="Color.Primary" /> |
16 | | - <MudSwitchM3 @bind-Checked="_multiSelection" Label="MultiSelection" Color="Color.Primary" /> |
17 | | - <MudSwitchM3 @bind-Checked="_preventTurkeyTransfer" Label="Prevent Transfer If Turkey Selected" Color="Color.Primary" /> |
18 | | - <MudSwitchM3 @bind-Checked="_orderOnTransfer" Label="Order on Transfer" Color="Color.Primary" /> |
19 | | - <MudSwitchM3 @bind-Checked="_allowDoubleClick" Label="Allow Double Click" Color="Color.Primary" /> |
| 16 | + <MudSwitchM3 @bind-Checked="_vertical" Label="Vertical" Color="Color.Secondary" /> |
| 17 | + <MudSwitchM3 @bind-Checked="_multiSelection" Label="MultiSelection" Color="Color.Secondary" /> |
| 18 | + <MudSwitchM3 @bind-Checked="_preventTurkeyTransfer" Label="Prevent Transfer If Turkey Selected" Color="Color.Secondary" /> |
| 19 | + <MudSwitchM3 @bind-Checked="_orderOnTransfer" Label="Order on Transfer" Color="Color.Secondary" /> |
| 20 | + <MudSwitchM3 @bind-Checked="_allowDoubleClick" Label="Allow Double Click" Color="Color.Secondary" /> |
| 21 | + <MudSwitchM3 @bind-Checked="_searchboxStart" Label="SearchBox Start" Color="Color.Secondary" /> |
| 22 | + <MudSwitchM3 @bind-Checked="_searchboxEnd" Label="SearchBox End" Color="Color.Secondary" /> |
20 | 23 | <MudNumericField @bind-Value="_maxItems" Clearable="true" Label="MaxItems" Variant="Variant.Outlined" Margin="Margin.Dense" /> |
21 | 24 | <MudSelectExtended @bind-Value="_selectAllType" ItemCollection="@(Enum.GetValues<SelectAllType>())" Label="SelectAll Type" Variant="Variant.Outlined" Margin="Margin.Dense" Dense="true" /> |
22 | 25 | <MudSelectExtended @bind-Value="_color" ItemCollection="@(Enum.GetValues<Color>())" Label="Color" Variant="Variant.Outlined" Margin="Margin.Dense" Dense="true" /> |
23 | 26 | <MudSelectExtended @bind-Value="_buttonVariant" ItemCollection="@(Enum.GetValues<Variant>())" Label="Button Variant" Variant="Variant.Outlined" Margin="Margin.Dense" Dense="true" /> |
| 27 | + <MudTextFieldExtended @bind-Value="_startTitle" Label="Start Title" Variant="Variant.Outlined" Immediate="true" /> |
| 28 | + <MudTextFieldExtended @bind-Value="_endTitle" Label="End Title" Variant="Variant.Outlined" Immediate="true" /> |
24 | 29 | </MudStack> |
25 | 30 | </MudItem> |
26 | 31 | </MudGrid> |
|
35 | 40 | bool _preventTurkeyTransfer; |
36 | 41 | bool _orderOnTransfer; |
37 | 42 | bool _allowDoubleClick; |
| 43 | + bool _searchboxStart; |
| 44 | + bool _searchboxEnd; |
38 | 45 | int? _maxItems; |
39 | 46 | SelectAllType _selectAllType = SelectAllType.Buttons; |
40 | 47 | Color _color = Color.Primary; |
41 | 48 | Variant _buttonVariant = Variant.Text; |
| 49 | + string _startTitle = "Country Group 1"; |
| 50 | + string _endTitle = "Country Group 2"; |
42 | 51 |
|
43 | 52 | private bool CheckTransfer(bool startToEnd) |
44 | 53 | { |
|
0 commit comments