From 25d21ac4197c3838be39cdd12b66141eca54a287 Mon Sep 17 00:00:00 2001 From: tesar-tech Date: Sat, 16 Nov 2024 22:58:43 +0100 Subject: [PATCH] Enum values are part of the comment. --- .../Blazorise.Docs/Components/ComponentApiDocs.razor | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/Blazorise.Docs/Components/ComponentApiDocs.razor b/Documentation/Blazorise.Docs/Components/ComponentApiDocs.razor index c0f9476371..502ae0b01f 100644 --- a/Documentation/Blazorise.Docs/Components/ComponentApiDocs.razor +++ b/Documentation/Blazorise.Docs/Components/ComponentApiDocs.razor @@ -14,8 +14,18 @@ { foreach (var property in ApiDocsForComponent.Properties.OrderBy(x=>x.Name)) { - + @((MarkupString)property.Description) + + @if (property.IsBlazoriseEnum) + { + Possible values: + for (int i = 0; i < Enum.GetNames(property.Type).Length; i++) + { + int i1 = i; + @Enum.GetNames(property.Type)[i1]@(i < Enum.GetNames(property.Type).Length-1? ", ":"") + } + } } }