Skip to content

Commit

Permalink
Centralize HelpText feature in _DataGridcell
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Moreira committed Oct 25, 2023
1 parent db2d07c commit 248d393
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 26 deletions.
7 changes: 7 additions & 0 deletions Source/Extensions/Blazorise.DataGrid/_DataGridCell.razor
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,11 @@ else
}
}
}
}

@if ( !string.IsNullOrWhiteSpace( Column.HelpText ) )
{
<Help>
@Column.HelpText
</Help>
}
7 changes: 0 additions & 7 deletions Source/Extensions/Blazorise.DataGrid/_DataGridCellEdit.razor
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,4 @@ else if ( ValueType == typeof( TimeSpan? ) )
else
{
<TextEdit Text="@CellEditContext.CellValue?.ToString()" TextChanged="@OnEditValueChanged" ReadOnly="@Column.Readonly" />
}

@if ( !string.IsNullOrWhiteSpace( Column.HelpText ) )
{
<FieldHelp>
@Column.HelpText
</FieldHelp>
}
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,4 @@ else
}
</Feedback>
</TextEdit>
}

@if ( !string.IsNullOrWhiteSpace( Column.HelpText ) )
{
<FieldHelp>
@Column.HelpText
</FieldHelp>
}
6 changes: 0 additions & 6 deletions Source/Extensions/Blazorise.DataGrid/_DataGridModal.razor
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@
<FieldBody>
<_DataGridCell TItem="TItem" Column="@column" Item="@EditItem" ValidationItem="@ValidationItem" CellEditContext="@EditItemCellValues[column.ElementId]" ShowValidationFeedback="@ParentDataGrid.ShowValidationFeedback" />
</FieldBody>
@if ( !string.IsNullOrWhiteSpace( column.HelpText ) )
{
<FieldHelp>
@column.HelpText
</FieldHelp>
}
</Field>
}
@{
Expand Down
6 changes: 0 additions & 6 deletions Source/Extensions/Blazorise.DataGrid/_DataGridRowEdit.razor
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@
<FieldBody>
<_DataGridCell TItem="TItem" Column="@column" Item="@Item" ValidationItem="@ValidationItem" CellEditContext="@CellValues[column.ElementId]" ShowValidationFeedback="@ParentDataGrid.ShowValidationFeedback" />
</FieldBody>
@if ( !string.IsNullOrWhiteSpace( column.HelpText ) )
{
<FieldHelp>
@column.HelpText
</FieldHelp>
}
</Field>
}
</Fields>
Expand Down

0 comments on commit 248d393

Please sign in to comment.