Skip to content

Commit

Permalink
PickList Placeholder, SourcePlaceholder and TargetPlaceholder added
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Oct 26, 2024
1 parent d60841b commit 4c54afd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Radzen.Blazor/RadzenPickList.razor
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<RadzenListBox @bind-Value=@selectedSourceItems Data="@source" Multiple="@Multiple" @bind-SearchText=@sourceSearchText
FilterAsYouType=true FilterCaseSensitivity=FilterCaseSensitivity.CaseInsensitive
TextProperty="@TextProperty" AllowFiltering=@AllowFiltering
Template=@ListBoxTemplate
Template=@ListBoxTemplate Placeholder="@(SourcePlaceholder ?? Placeholder)"
Disabled=@(Disabled || Source == null || (Source != null && !Source.Any()))
/>
</RadzenStack>
Expand All @@ -36,7 +36,7 @@
<RadzenListBox @bind-Value=@selectedTargetItems Data="@target" Multiple="@Multiple" @bind-SearchText=@targetSearchText
FilterAsYouType=true FilterCaseSensitivity=FilterCaseSensitivity.CaseInsensitive
TextProperty="@TextProperty" AllowFiltering=@AllowFiltering
Template=@ListBoxTemplate
Template=@ListBoxTemplate Placeholder="@(TargetPlaceholder ?? Placeholder)"
Disabled=@(Disabled || Target == null|| (Target != null && !Target.Any()))
/>
</RadzenStack>
Expand Down
21 changes: 21 additions & 0 deletions Radzen.Blazor/RadzenPickList.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,27 @@ public partial class RadzenPickList<TItem> : RadzenComponent
[Parameter]
public RenderFragment TargetHeader { get; set; }

/// <summary>
/// Gets or sets the common placeholder
/// </summary>
/// <value>The common placeholder.</value>
[Parameter]
public string Placeholder { get; set; }

/// <summary>
/// Gets or sets the source placeholder
/// </summary>
/// <value>The source placeholder.</value>
[Parameter]
public string SourcePlaceholder { get; set; }

/// <summary>
/// Gets or sets the target placeholder
/// </summary>
/// <value>The target placeholder.</value>
[Parameter]
public string TargetPlaceholder { get; set; }

/// <summary>
/// Gets or sets the text property
/// </summary>
Expand Down

0 comments on commit 4c54afd

Please sign in to comment.