Skip to content

Commit 1c3a3c1

Browse files
committed
Update AdditionalAttributes to nullable; fix docs section order
Changed AdditionalAttributes to nullable in base components for Blazor convention compliance. Cleaned up Grid documentation by removing duplicate and misplaced "GridColumn Parameters" sections and improving order.
1 parent 0e398c4 commit 1c3a3c1

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

BlazorBootstrap.Demo.RCL/Components/Pages/Docs/Grid/Grid_Doc_01_Documentation.razor

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
<DocxTable TItem="Grid<object>" DocType="DocType.Events" />
2727
</Section>
2828

29-
<Section Class="p-0" Size="HeadingSize.H3" Name="GridColumn Parameters" PageUrl="@pageUrl" Link="grid-column-parameters">
30-
<DocxTable TItem="GridColumn<object>" DocType="DocType.Parameters" />
31-
</Section>
32-
3329
<Section Class="p-0" Size="HeadingSize.H3" Name="GridColumns Parameters" PageUrl="@pageUrl" Link="grid-columns-parameters">
3430
<DocxTable TItem="GridColumns" DocType="DocType.Parameters" />
3531
</Section>

blazorbootstrap/Components/Core/BlazorBootstrapComponentBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ protected virtual ValueTask DisposeAsyncCore(bool disposing)
148148
[Description("Gets or sets additional attributes that will be applied to the component.")]
149149
[ParameterTypeName("Dictionary<string, object>")]
150150
[Parameter(CaptureUnmatchedValues = true)]
151-
public Dictionary<string, object> AdditionalAttributes { get; set; } = default!;
151+
public Dictionary<string, object>? AdditionalAttributes { get; set; }
152152

153153
/// <summary>
154154
/// Gets or sets the CSS class name(s) to apply to the component.

blazorbootstrap/Components/Core/BlazorBootstrapLayoutComponentBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ protected virtual ValueTask DisposeAsyncCore(bool disposing)
141141
[Description("Gets or sets additional attributes that will be applied to the component.")]
142142
[Parameter(CaptureUnmatchedValues = true)]
143143
[ParameterTypeName("Dictionary<string, object>")]
144-
public Dictionary<string, object> AdditionalAttributes { get; set; } = default!;
144+
public Dictionary<string, object>? AdditionalAttributes { get; set; }
145145

146146
/// <summary>
147147
/// Gets or sets the CSS class name(s) to apply to the component.

0 commit comments

Comments
 (0)