@@ -23,7 +23,7 @@ public partial class IgbGridLite<TItem> : ComponentBase, IDisposable where TItem
2323 /// Column configurations for the grid
2424 /// </summary>
2525 [ Parameter ]
26- public List < ColumnConfiguration < TItem > > ? Columns { get ; set ; }
26+ public List < IgbColumnConfiguration > ? Columns { get ; set ; }
2727
2828 /// <summary>
2929 /// The options to customize the grid with
@@ -45,19 +45,19 @@ public partial class IgbGridLite<TItem> : ComponentBase, IDisposable where TItem
4545 /// Sort configuration property for the grid.
4646 /// </summary>
4747 [ Parameter ]
48- public GridSortConfiguration ? SortConfiguration { get ; set ; }
48+ public IgbGridLiteSortConfiguration ? SortConfiguration { get ; set ; }
4949
5050 /// <summary>
5151 /// Initial sort expressions to apply when the grid is rendered
5252 /// </summary>
5353 [ Parameter ]
54- public IEnumerable < SortExpression > ? SortExpressions { get ; set ; }
54+ public IEnumerable < IgbGridLiteSortExpression > ? SortExpressions { get ; set ; }
5555
5656 /// <summary>
5757 /// Initial filter expressions to apply when the grid is rendered
5858 /// </summary>
5959 [ Parameter ]
60- public IEnumerable < FilterExpression > ? FilterExpressions { get ; set ; }
60+ public IEnumerable < IgbGridLiteFilterExpression > ? FilterExpressions { get ; set ; }
6161
6262 /// <summary>
6363 /// Additional attributes for the component's HTML element
@@ -75,14 +75,14 @@ public partial class IgbGridLite<TItem> : ComponentBase, IDisposable where TItem
7575 /// The expression can be modified prior to the operation running.
7676 /// </remarks>
7777 [ Parameter ]
78- public EventCallback < IgbGridLiteSortingEvent > OnSorting { get ; set ; }
78+ public EventCallback < IgbGridLiteSortingEventArgs > Sorting { get ; set ; }
7979
8080 /// <summary>
8181 /// Fires when a sort operation initiated through the UI has completed.
8282 /// Returns the sort expression used for the operation.
8383 /// </summary>
8484 [ Parameter ]
85- public EventCallback < IgbGridLiteSortedEvent > OnSorted { get ; set ; }
85+ public EventCallback < IgbGridLiteSortedEventArgs > Sorted { get ; set ; }
8686
8787 /// <summary>
8888 /// Fires when filtering is initiated through the UI.
@@ -92,20 +92,20 @@ public partial class IgbGridLite<TItem> : ComponentBase, IDisposable where TItem
9292 /// The expression can be modified prior to the operation running.
9393 /// </remarks>
9494 [ Parameter ]
95- public EventCallback < IgbGridLiteFilteringEvent > OnFiltering { get ; set ; }
95+ public EventCallback < IgbGridLiteFilteringEventArgs > Filtering { get ; set ; }
9696
9797 /// <summary>
9898 /// Fires when a filter operation initiated through the UI has completed.
9999 /// Returns the filter state for the affected column.
100100 /// </summary>
101101 [ Parameter ]
102- public EventCallback < IgbGridLiteFilteredEvent > OnFiltered { get ; set ; }
102+ public EventCallback < IgbGridLiteFilteredEventArgs > Filtered { get ; set ; }
103103
104104 /// <summary>
105105 /// Fires when <see cref="RenderAsync"/> completes
106106 /// </summary>
107107 [ Parameter ]
108- public EventCallback OnRendered { get ; set ; }
108+ public EventCallback Rendered { get ; set ; }
109109
110110 private ElementReference grid ;
111111 private IJSObjectReference blazorIgbGridLite ;
@@ -203,17 +203,17 @@ private async Task RenderGridAsync()
203203 await InvokeVoidJsAsync ( "blazor_igc_grid_lite.renderGrid" ,
204204 jsHandler . ObjectReference , grid , json , GetEventFlags ( ) ) ;
205205
206- await OnRendered . InvokeAsync ( ) ;
206+ await Rendered . InvokeAsync ( ) ;
207207 }
208208
209209 private object GetEventFlags ( )
210210 {
211211 return new
212212 {
213- hasSorting = OnSorting . HasDelegate ,
214- hasSorted = OnSorted . HasDelegate ,
215- hasFiltering = OnFiltering . HasDelegate ,
216- hasFiltered = OnFiltered . HasDelegate
213+ hasSorting = Sorting . HasDelegate ,
214+ hasSorted = Sorted . HasDelegate ,
215+ hasFiltering = Filtering . HasDelegate ,
216+ hasFiltered = Filtered . HasDelegate
217217 } ;
218218 }
219219
@@ -241,7 +241,7 @@ public virtual async Task UpdateDataAsync(IEnumerable<TItem> newData)
241241 /// Updates the column configurations for the grid.
242242 /// </summary>
243243 /// <param name="newColumns">The new column configurations</param>
244- public virtual async Task UpdateColumnsAsync ( List < ColumnConfiguration < TItem > > newColumns )
244+ public virtual async Task UpdateColumnsAsync ( List < IgbColumnConfiguration > newColumns )
245245 {
246246 Columns = newColumns ;
247247 var json = JsonSerializer . Serialize ( newColumns . Select ( c => c . ToJsConfig ( ) ) , GridJsonSerializerOptions ) ;
@@ -252,7 +252,7 @@ public virtual async Task UpdateColumnsAsync(List<ColumnConfiguration<TItem>> ne
252252 /// Performs a sort operation in the grid based on the passed expression(s).
253253 /// </summary>
254254 /// <param name="expressions">The sort expression(s) to apply</param>
255- public virtual async Task SortAsync ( SortExpression expressions )
255+ public virtual async Task SortAsync ( IgbGridLiteSortExpression expressions )
256256 {
257257 var json = JsonSerializer . Serialize ( expressions , GridJsonSerializerOptions ) ;
258258 await InvokeVoidJsAsync ( "blazor_igc_grid_lite.sort" , gridId , json ) ;
@@ -262,7 +262,7 @@ public virtual async Task SortAsync(SortExpression expressions)
262262 /// Performs a sort operation in the grid based on the passed expression(s).
263263 /// </summary>
264264 /// <param name="expressions">The sort expression(s) to apply</param>
265- public virtual async Task SortAsync ( List < SortExpression > expressions )
265+ public virtual async Task SortAsync ( List < IgbGridLiteSortExpression > expressions )
266266 {
267267 var json = JsonSerializer . Serialize ( expressions , GridJsonSerializerOptions ) ;
268268 await InvokeVoidJsAsync ( "blazor_igc_grid_lite.sort" , gridId , json ) ;
@@ -282,7 +282,7 @@ public virtual async Task ClearSortAsync(string key = null)
282282 /// Performs a filter operation in the grid based on the passed expression(s).
283283 /// </summary>
284284 /// <param name="expressions">The filter expression(s) to apply</param>
285- public virtual async Task FilterAsync ( FilterExpression expression )
285+ public virtual async Task FilterAsync ( IgbGridLiteFilterExpression expression )
286286 {
287287 var json = JsonSerializer . Serialize ( expression , GridJsonSerializerOptions ) ;
288288 await InvokeVoidJsAsync ( "blazor_igc_grid_lite.filter" , gridId , json ) ;
@@ -292,7 +292,7 @@ public virtual async Task FilterAsync(FilterExpression expression)
292292 /// Performs a filter operation in the grid based on the passed expression(s).
293293 /// </summary>
294294 /// <param name="expressions">The filter expression(s) to apply</param>
295- public virtual async Task FilterAsync ( List < FilterExpression > expressions )
295+ public virtual async Task FilterAsync ( List < IgbGridLiteFilterExpression > expressions )
296296 {
297297 var json = JsonSerializer . Serialize ( expressions , GridJsonSerializerOptions ) ;
298298 await InvokeVoidJsAsync ( "blazor_igc_grid_lite.filter" , gridId , json ) ;
@@ -313,7 +313,7 @@ public virtual async Task ClearFilterAsync(string key = null)
313313 /// </summary>
314314 /// <param name="key">The column key to retrieve</param>
315315 /// <returns>The column configuration if found, otherwise null</returns>
316- public virtual ColumnConfiguration < TItem > GetColumn ( string key )
316+ public virtual IgbColumnConfiguration GetColumn ( string key )
317317 {
318318 return Columns ? . FirstOrDefault ( c => c . Key == key ) ;
319319 }
@@ -323,7 +323,7 @@ public virtual ColumnConfiguration<TItem> GetColumn(string key)
323323 /// </summary>
324324 /// <param name="index">The zero-based column index</param>
325325 /// <returns>The column configuration if found, otherwise null</returns>
326- public virtual ColumnConfiguration < TItem > GetColumn ( int index )
326+ public virtual IgbColumnConfiguration GetColumn ( int index )
327327 {
328328 return Columns ? . ElementAtOrDefault ( index ) ;
329329 }
0 commit comments