Skip to content

Commit

Permalink
feat: DynamicTextColumnBase
Browse files Browse the repository at this point in the history
  • Loading branch information
giard-alexandre committed Sep 22, 2024
1 parent 84dda95 commit b9b0cac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/DynamicTreeDataGrid/Columns/DynamicTextColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ public class DynamicTextColumn<TModel, TValue> : DynamicTextColumnBase<TModel, T
/// The column width. If null defaults to <see cref="GridLength.Auto"/>.
/// </param>
/// <param name="options">Additional column options.</param>
public DynamicTextColumn(object? header,
public DynamicTextColumn(string name,
object? header,
Expression<Func<TModel, TValue?>> getter,
GridLength? width = null,
TextColumnOptions<TModel>? options = null) : base(header, getter, width, options) { }
TextColumnOptions<TModel>? options = null) : base(name, header, getter, width, options) { }

/// <summary>
/// Initializes a new instance of the <see cref="TextColumn{TModel, TValue}"/> class.
Expand All @@ -41,10 +42,11 @@ public DynamicTextColumn(object? header,
/// The column width. If null defaults to <see cref="GridLength.Auto"/>.
/// </param>
/// <param name="options">Additional column options.</param>
public DynamicTextColumn(object? header,
public DynamicTextColumn(string name,
object? header,
Expression<Func<TModel, TValue?>> getter,
Action<TModel, TValue?> setter,
GridLength? width = null,
TextColumnOptions<TModel>? options = null) : base(header, getter, setter, width,
TextColumnOptions<TModel>? options = null) : base(name, header, getter, setter, width,
options ?? new()) { }
}

0 comments on commit b9b0cac

Please sign in to comment.