Class SelectionContext
Context used by Components that allow selecting one or more entities. Usage is through CascadingParameters.
public class SelectionContext
- Inheritance
-
SelectionContext
- Inherited Members
Constructors
SelectionContext(bool)
public SelectionContext(bool canSelectAll)
Parameters
canSelectAllbool
Properties
CanSelectAll
public bool CanSelectAll { get; }
Property Value
SelectedItems
public IReadOnlyCollection<Guid> SelectedItems { get; }
Property Value
ShowItemSelection
public Func<IEntity, bool>? ShowItemSelection { get; set; }
Property Value
Methods
Add(Guid)
public bool Add(Guid id)
Parameters
idGuid
Returns
AddRange(IEnumerable<Guid>)
public bool AddRange(IEnumerable<Guid> ids)
Parameters
idsIEnumerable<Guid>
Returns
Clear()
public void Clear()
Contains(Guid)
public bool Contains(Guid id)
Parameters
idGuid
Returns
Remove(Guid)
public bool Remove(Guid id)
Parameters
idGuid
Returns
ReplaceAll(IEnumerable<Guid>)
public bool ReplaceAll(IEnumerable<Guid> allIDs)
Parameters
allIDsIEnumerable<Guid>
Returns
Events
OnSelectionChanged
public event Action? OnSelectionChanged