Table of Contents

Class SelectionContext

Namespace
The.Web.Entities
Assembly
Instagile.Web.Client.dll

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

canSelectAll bool

Properties

CanSelectAll

public bool CanSelectAll { get; }

Property Value

bool

SelectedItems

public IReadOnlyCollection<Guid> SelectedItems { get; }

Property Value

IReadOnlyCollection<Guid>

ShowItemSelection

public Func<IEntity, bool>? ShowItemSelection { get; set; }

Property Value

Func<IEntity, bool>

Methods

Add(Guid)

public bool Add(Guid id)

Parameters

id Guid

Returns

bool

AddRange(IEnumerable<Guid>)

public bool AddRange(IEnumerable<Guid> ids)

Parameters

ids IEnumerable<Guid>

Returns

bool

Clear()

public void Clear()

Contains(Guid)

public bool Contains(Guid id)

Parameters

id Guid

Returns

bool

Remove(Guid)

public bool Remove(Guid id)

Parameters

id Guid

Returns

bool

ReplaceAll(IEnumerable<Guid>)

public bool ReplaceAll(IEnumerable<Guid> allIDs)

Parameters

allIDs IEnumerable<Guid>

Returns

bool

Events

OnSelectionChanged

public event Action? OnSelectionChanged

Event Type

Action