mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 15:38:00 +00:00
Finished the Pandoc integration (#487)
This commit is contained in:
1 parent
5b685193ef
commit
437da0fd9b
30 files changed
+1600
-349
No files matched your search
@@ -7,8 +7,13 @@ public partial class CodeTabs : ComponentBase
|
||||
[Parameter]
|
||||
public RenderFragment? ChildContent { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public int SelectedIndex { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public EventCallback<int> SelectedIndexChanged { get; set; }
|
||||
|
||||
private readonly List<CodeTabItem> blocks = new();
|
||||
private int selectedIndex;
|
||||
|
||||
internal void RegisterBlock(string title, RenderFragment fragment)
|
||||
{
|
||||
@@ -27,4 +32,11 @@ public partial class CodeTabs : ComponentBase
|
||||
|
||||
public RenderFragment Fragment { get; init; } = null!;
|
||||
}
|
||||
|
||||
private async Task TabChanged(int index)
|
||||
{
|
||||
this.SelectedIndex = index;
|
||||
await this.SelectedIndexChanged.InvokeAsync(index);
|
||||
await this.InvokeAsync(this.StateHasChanged);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user