mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 19:53:47 +00:00
Show data sources as collapsible panels and reach their settings
This commit is contained in:
8 files changed
+263
-121
No files matched your search
@@ -1,8 +1,8 @@
|
||||
<MudExpansionPanel Class="border-solid border rounded-lg" Expanded="@this.IsExpanded" MaxHeight="@this.MaxHeight" ExpandedChanged="async s => await this.ExpandedChanged(s)">
|
||||
<MudExpansionPanel Class="border-solid border rounded-lg" HeaderClass="@this.HeaderClass" Expanded="@this.IsExpanded" MaxHeight="@this.MaxHeight" ExpandedChanged="async s => await this.ExpandedChanged(s)">
|
||||
<TitleContent>
|
||||
<div class="d-flex align-center">
|
||||
<MudIcon Icon="@this.HeaderIcon" Size="@this.IconSize" Color="@this.IconColor" class="mr-3"/>
|
||||
<MudText Typo="Typo.h6">
|
||||
<MudText Typo="@this.HeaderTypo">
|
||||
@this.HeaderText
|
||||
</MudText>
|
||||
@if (this.ShowEndButton)
|
||||
|
||||
@@ -15,7 +15,27 @@ public partial class ExpansionPanel : ComponentBase
|
||||
|
||||
[Parameter]
|
||||
public string HeaderText { get; set; } = "n/a";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The typography of the header text.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Worth lowering for a panel which sits inside another one, together with the compact header
|
||||
/// class below: two headers of the same size give no clue about which one contains the other.
|
||||
/// </remarks>
|
||||
[Parameter]
|
||||
public Typo HeaderTypo { get; set; } = Typo.h6;
|
||||
|
||||
/// <summary>
|
||||
/// Additional class names for the header, separated by space.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The one this exists for is expansion-panel-header-compact, which takes the height of the
|
||||
/// header down for a nested panel.
|
||||
/// </remarks>
|
||||
[Parameter]
|
||||
public string HeaderClass { get; set; } = string.Empty;
|
||||
|
||||
[Parameter]
|
||||
public int? MaxHeight { get; set; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user