- @if (Strict && !IsValueInList)
+
+ @if (ValuePresenter == ValuePresenter.Chip)
{
- //Show nothing
- @Placeholder
+
+ @if (ItemCollection != null)
+ {
+ foreach (var item in ItemCollection.Where(x => SelectedValues.Contains(x)))
+ {
+
+ }
+ }
+ else
+ {
+ foreach (var item in Items?.Where(x => SelectedValues.Contains(x.Value)) ?? new List>())
+ {
+
+ }
+ }
+
}
- else if (ValuePresenter == ValuePresenter.Text)
- {
- @if (string.IsNullOrEmpty(Text))
- {
- @Placeholder
- }
+
-
@GetSelectTextPresenter()
- }
- else if (ValuePresenter == ValuePresenter.Chip)
- {
- if (SelectedValues == null || !SelectedValues.Any())
+
+
+ @if (Strict && !IsValueInList)
{
+ //Show nothing
@Placeholder
}
- else
- {
- @*Chips show under DataVisualiser RenderFragment*@
- }
- }
- else if (ValuePresenter == ValuePresenter.ItemContent)
- {
- if (SelectedListItem == null)
+ else if (ValuePresenter == ValuePresenter.Text)
{
- @Placeholder
+ @if (string.IsNullOrEmpty(Text))
+ {
+ @Placeholder
+ }
+ @GetSelectTextPresenter()
}
- else if (ItemTemplate != null)
+ else if (ValuePresenter == ValuePresenter.Chip)
{
- if (SelectedListItem != null && SelectedListItem.Value != null)
+ if (SelectedValues == null || !SelectedValues.Any())
{
- @ItemTemplate(SelectedListItem)
+ @Placeholder
}
- else if (!string.IsNullOrEmpty(Placeholder))
+ else
{
- @Placeholder
+ @*Chips show under DataVisualiser RenderFragment*@
}
}
- else if (SelectedListItem.ChildContent != null)
- {
- @SelectedListItem.ChildContent
- }
- else
+ else if (ValuePresenter == ValuePresenter.ItemContent)
{
- @if (string.IsNullOrEmpty(Text))
+ if (SelectedListItem == null)
{
@Placeholder
+
}
+ else if (ItemTemplate != null)
+ {
+ if (SelectedListItem != null && SelectedListItem.Value != null)
+ {
+ @ItemTemplate(SelectedListItem)
+ }
+ else if (!string.IsNullOrEmpty(Placeholder))
+ {
+ @Placeholder
+ }
+ }
+ else if (SelectedListItem.ChildContent != null)
+ {
+ @SelectedListItem.ChildContent
+ }
+ else
+ {
+ @if (string.IsNullOrEmpty(Text))
+ {
+ @Placeholder
+ }
- @GetSelectTextPresenter()
+ @GetSelectTextPresenter()
+ }
}
- }
-
-
-
+
+