@@ -111,12 +111,16 @@ public async Task bsShowTab(string activeTabId, string previousActiveTabId)
111111 /// Gets the active tab.
112112 /// </summary>
113113 /// <returns>Returns the cuurent active <see cref="Tab"/>.</returns>
114+ [ AddedVersion ( "3.0.0" ) ]
115+ [ Description ( "Gets the active tab." ) ]
114116 public Tab GetActiveTab ( ) => activeTab ;
115117
116118 /// <summary>
117119 /// Removes the tab by index.
118120 /// </summary>
119121 /// <param name="tabIndex"></param>
122+ [ AddedVersion ( "2.2.0" ) ]
123+ [ Description ( "Removes the tab by index." ) ]
120124 public void RemoveTabByIndex ( int tabIndex )
121125 {
122126 var tab = tabs . ElementAtOrDefault ( tabIndex ) ;
@@ -136,6 +140,8 @@ public void RemoveTabByIndex(int tabIndex)
136140 /// Removes the tab by name.
137141 /// </summary>
138142 /// <param name="tabName"></param>
143+ [ AddedVersion ( "2.2.0" ) ]
144+ [ Description ( "Removes the tab by name." ) ]
139145 public void RemoveTabByName ( string tabName )
140146 {
141147 var tabIndex = tabs . FindIndex ( x => x . Name == tabName ) ;
@@ -155,6 +161,8 @@ public void RemoveTabByName(string tabName)
155161 /// <summary>
156162 /// Selects the first tab and show its associated pane.
157163 /// </summary>
164+ [ AddedVersion ( "1.0.0" ) ]
165+ [ Description ( "Selects the first tab and show its associated pane." ) ]
158166 public async Task ShowFirstTabAsync ( )
159167 {
160168 var tab = tabs . FirstOrDefault ( x => ! x . Disabled ) ;
@@ -168,6 +176,8 @@ public async Task ShowFirstTabAsync()
168176 /// <summary>
169177 /// Selects the last tab and show its associated pane.
170178 /// </summary>
179+ [ AddedVersion ( "1.0.0" ) ]
180+ [ Description ( "Selects the last tab and show its associated pane." ) ]
171181 public async Task ShowLastTabAsync ( )
172182 {
173183 if ( tabs . Count == 0 ) return ;
@@ -181,12 +191,16 @@ public async Task ShowLastTabAsync()
181191 /// <summary>
182192 /// Shows the recently added tab.
183193 /// </summary>
194+ [ AddedVersion ( "2.2.0" ) ]
195+ [ Description ( "Shows the recently added tab." ) ]
184196 public void ShowRecentTab ( ) => showLastTab = true ;
185197
186198 /// <summary>
187199 /// Selects the tab by index and show its associated pane.
188200 /// </summary>
189201 /// <param name="tabIndex">The zero-based index of the element to get or set.</param>
202+ [ AddedVersion ( "1.0.0" ) ]
203+ [ Description ( "Selects the tab by index and show its associated pane." ) ]
190204 public async Task ShowTabByIndexAsync ( int tabIndex )
191205 {
192206 if ( tabs . Count == 0 ) return ;
@@ -203,6 +217,8 @@ public async Task ShowTabByIndexAsync(int tabIndex)
203217 /// Selects the tab by name and show its associated pane.
204218 /// </summary>
205219 /// <param name="tabName">The name of the tab to select.</param>
220+ [ AddedVersion ( "1.0.0" ) ]
221+ [ Description ( "Selects the tab by name and show its associated pane." ) ]
206222 public async Task ShowTabByNameAsync ( string tabName )
207223 {
208224 if ( tabs . Count == 0 ) return ;
@@ -270,7 +286,7 @@ private async Task ShowTabAsync(Tab tab)
270286 queuedTasks . Enqueue ( async ( ) => await JSRuntime . InvokeVoidAsync ( "window.blazorBootstrap.tabs.show" , tab . Id ) ) ;
271287
272288 if ( tab ? . OnClick . HasDelegate ?? false )
273- await tab . OnClick . InvokeAsync ( new TabEventArgs ( tab ! . Name , tab . Title ) ) ;
289+ await tab . OnClick . InvokeAsync ( new TabEventArgs ( tab . Name ! , tab . Title ! ) ) ;
274290
275291 activeTab = tab ! ;
276292 }
@@ -289,19 +305,26 @@ private async Task ShowTabAsync(Tab tab)
289305
290306 /// <summary>
291307 /// Gets or sets the content to be rendered within the component.
308+ /// <para>
309+ /// Default value is <see langword="null"/>.
310+ /// </para>
292311 /// </summary>
293- /// <remarks>
294- /// Default value is null.
295- /// </remarks>
312+ [ AddedVersion ( "1.0.0" ) ]
313+ [ DefaultValue ( null ) ]
314+ [ Description ( "Gets or sets the content to be rendered within the component." ) ]
315+ [ EditorRequired ]
296316 [ Parameter ]
297- public RenderFragment ChildContent { get ; set ; } = default ! ;
317+ public RenderFragment ? ChildContent { get ; set ; }
298318
299319 /// <summary>
300320 /// Gets or sets the tabs fade effect.
321+ /// <para>
322+ /// Default value is <see langword="false"/>.
323+ /// </para>
301324 /// </summary>
302- /// <remarks>
303- /// Default value is false.
304- /// </remarks>
325+ [ AddedVersion ( "1.0.0" ) ]
326+ [ DefaultValue ( false ) ]
327+ [ Description ( "Gets or sets the tabs fade effect." ) ]
305328 [ Parameter ]
306329 public bool EnableFadeEffect { get ; set ; }
307330
@@ -314,34 +337,45 @@ private async Task ShowTabAsync(Tab tab)
314337
315338 /// <summary>
316339 /// Get or sets the nav style.
317- /// </summary>
318- /// <remarks>
340+ /// <para>
319341 /// Default value is <see cref="NavStyle.Tabs" />.
320- /// </remarks>
342+ /// </para>
343+ /// </summary>
344+ [ AddedVersion ( "1.0.0" ) ]
345+ [ DefaultValue ( NavStyle . Tabs ) ]
346+ [ Description ( "Get or sets the nav style." ) ]
321347 [ Parameter ]
322348 public NavStyle NavStyle { get ; set ; } = NavStyle . Tabs ;
323349
324350 /// <summary>
325351 /// This event fires after a new tab is shown (and thus the previous active tab is hidden).
326352 /// </summary>
353+ [ AddedVersion ( "1.0.0" ) ]
354+ [ Description ( "This event fires after a new tab is shown (and thus the previous active tab is hidden)." ) ]
327355 [ Parameter ]
328356 public EventCallback < TabsEventArgs > OnHidden { get ; set ; }
329357
330358 /// <summary>
331359 /// This event fires when a new tab is to be shown (and thus the previous active tab is to be hidden).
332360 /// </summary>
361+ [ AddedVersion ( "1.0.0" ) ]
362+ [ Description ( "This event fires when a new tab is to be shown (and thus the previous active tab is to be hidden)." ) ]
333363 [ Parameter ]
334364 public EventCallback < TabsEventArgs > OnHiding { get ; set ; }
335365
336366 /// <summary>
337367 /// This event fires on tab show, but before the new tab has been shown.
338368 /// </summary>
369+ [ AddedVersion ( "1.0.0" ) ]
370+ [ Description ( "This event fires on tab show, but before the new tab has been shown." ) ]
339371 [ Parameter ]
340372 public EventCallback < TabsEventArgs > OnShowing { get ; set ; }
341373
342374 /// <summary>
343375 /// This event fires on tab show after a tab has been shown.
344376 /// </summary>
377+ [ AddedVersion ( "1.0.0" ) ]
378+ [ Description ( "This event fires on tab show after a tab has been shown." ) ]
345379 [ Parameter ]
346380 public EventCallback < TabsEventArgs > OnShown { get ; set ; }
347381
0 commit comments