6 references to ViewModel
Aspire.Dashboard (3)
Components\Controls\TextVisualizer.razor.cs (3)
44private bool IsUnformatted => DisplayUnformatted || ViewModel.FormatKind is DashboardUIHelpers.PlaintextFormat; 63if (ViewModel.FormatKind is not DashboardUIHelpers.PlaintextFormat) 107return $"log-content highlight-line language-{ViewModel.FormatKind} theme-a11y-{ThemeManager.EffectiveTheme.ToLowerInvariant()}-min";
Aspire.Dashboard.Components.Tests (3)
Controls\TextVisualizerDialogTests.cs (3)
149.Add(p => p.ViewModel, new TextVisualizerViewModel("""{"value":1}""", indentText: false)) 367Assert.Equal(mermaid, cut.FindComponent<TextVisualizer>().Instance.ViewModel.FormattedText); 476.Add(p => p.ViewModel, new TextVisualizerViewModel("SELECT '<script>'", indentText: true, knownFormat: DashboardUIHelpers.SqlFormat))