Skip to content

Commit

Permalink
ColumnChooserContext docs
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Moreira committed Feb 22, 2024
1 parent dbc68e5 commit 28062db
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
#region Using directives
#endregion

using System.Collections.Generic;
using Blazorise.DataGrid.EventArguments;
using Microsoft.AspNetCore.Components;

#endregion

namespace Blazorise.DataGrid;

/// <summary>
/// Context for the column chooser.
/// </summary>
/// <typeparam name="TItem"></typeparam>
public class ColumnChooserContext<TItem>
{
/// <summary>
/// The list of columns that can be displayed.
/// </summary>
public IEnumerable<DataGridColumn<TItem>> Columns { get; private set; }
public EventCallback<ColumnDisplayChangedEventArgs<TItem>> ColumnDisplayChanged { get; private set; }

/// <summary>
/// The event that is raised when the column display changes.
/// </summary>
public EventCallback<ColumnDisplayChangedEventArgs<TItem>> ColumnDisplayChanged { get; private set; }

public ColumnChooserContext( IEnumerable<DataGridColumn<TItem>> columns, EventCallback<ColumnDisplayChangedEventArgs<TItem>> columnDisplayChanged )
{
Expand Down

0 comments on commit 28062db

Please sign in to comment.