mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-14 22:13:48 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
32 lines
896 B
C#
32 lines
896 B
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AIStudio.Components;
|
|
|
|
/// <summary>
|
|
/// One row of a table that shows information: an icon and a label in the first cell, the value in the
|
|
/// second.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Place it inside the body of a MudSimpleTable. The value is free content, so a row may hold buttons
|
|
/// next to its text.
|
|
/// </remarks>
|
|
public partial class InfoTableRow : ComponentBase
|
|
{
|
|
/// <summary>
|
|
/// The icon in front of the label.
|
|
/// </summary>
|
|
[Parameter]
|
|
public string Icon { get; set; } = Icons.Material.Filled.Info;
|
|
|
|
/// <summary>
|
|
/// The label, which names what the row shows.
|
|
/// </summary>
|
|
[Parameter, EditorRequired]
|
|
public string Label { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// The value of the row.
|
|
/// </summary>
|
|
[Parameter]
|
|
public RenderFragment? ChildContent { get; set; }
|
|
} |