mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52:50 +08:00

* Move /Widgets/Live/* to /Live/* * Move /Widgets/Prompt/* to /Prompts/* * Move tests and expectations to match the new locations
18 lines
523 B
C#
18 lines
523 B
C#
namespace Spectre.Console
|
|
{
|
|
/// <summary>
|
|
/// Represent a selection item.
|
|
/// </summary>
|
|
/// <typeparam name="T">The data type.</typeparam>
|
|
public interface ISelectionItem<T>
|
|
where T : notnull
|
|
{
|
|
/// <summary>
|
|
/// Adds a child to the item.
|
|
/// </summary>
|
|
/// <param name="child">The child to add.</param>
|
|
/// <returns>A new <see cref="ISelectionItem{T}"/> instance representing the child.</returns>
|
|
ISelectionItem<T> AddChild(T child);
|
|
}
|
|
}
|