Skip to content

Commit

Permalink
More fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stsrki committed Dec 9, 2024
1 parent 6d30ea1 commit e2f0f37
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Extensions/Blazorise.DataGrid/BaseDataGridColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public string FormatDisplayValue( object value )
/// </summary>
[Parameter] public IFormatProvider DisplayFormatProvider { get; set; }

/// <summary>
/// Specifies the content to be rendered inside this <see cref="BaseDataGridColumn{TItem}"/>.
/// </summary>
[Parameter] public RenderFragment ChildContent { get; set; }

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Source/Extensions/Blazorise.DataGrid/DataGridAggregate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ public DataGridAggregateType Aggregate
/// </summary>
[Parameter] public IFormatProvider DisplayFormatProvider { get; set; }

/// <summary>
/// Specifies the content to be rendered inside this <see cref="DataGridAggregate{TItem}"/>.
/// </summary>
[Parameter] public RenderFragment ChildContent { get; set; }

/// <summary>
Expand Down
17 changes: 17 additions & 0 deletions Source/Extensions/Blazorise.DataGrid/DataGridColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ private void DisposeSubscriptions()
}
}

/// <summary>
/// Handles the filter value change. This method is intended for internal framework use only and should not be called directly by user code.
/// </summary>
/// <param name="filterValue">The new filter value.</param>
public async void OnSearchValueChanged( object filterValue )
{
await ParentDataGrid.OnFilterChanged( this, filterValue );
Expand Down Expand Up @@ -255,11 +259,24 @@ internal string GetFieldToSort()
internal Func<TItem, object> GetGroupByFunc()
=> GroupBy is not null ? GroupBy : valueGetter.Value;

/// <summary>
/// Gets the formatted display value. This method is intended for internal framework use only and should not be called directly by user code.
/// </summary>
/// <param name="item">Item the contains the value to format.</param>
/// <returns>
/// Formatted display value.
/// </returns>
public string FormatDisplayValue( TItem item )
{
return FormatDisplayValue( GetValue( item ) );
}

/// <summary>
/// Indicates whether the cell values are editable.
/// </summary>
/// <returns>
/// A <see cref="bool"/> value indicating whether the cell values are editable.
/// </returns>
public bool CellValuesAreEditable()
{
return Editable &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@ private async void OnLocalizationChanged( object sender, EventArgs e )
/// </summary>
[CascadingParameter] public DataGrid<TItem> ParentDataGrid { get; set; }

/// <summary>
/// An event raised when the batch editing is canceled.
/// </summary>
[Parameter] public EventCallback CancelBatch { get; set; }
}

0 comments on commit e2f0f37

Please sign in to comment.