internal void Register(BaseSelectItem selectItem) { if (selectItem == null) { return; } if (selectItems == null) { selectItems = new List <BaseSelectItem>(); } if (!selectItems.Contains(selectItem)) { selectItems.Add(selectItem); ClassMapper.Dirty(); //if ( selectItems?.Count > 1 ) // must find a better way to refresh // StateHasChanged(); } }
internal bool IsSelected(BaseSelectItem selectItem) { return(selectedValues?.Contains(selectItem?.Value) == true); }