Skip to content

Commit

Permalink
Merge pull request #28 from VolkerLieber/master
Browse files Browse the repository at this point in the history
  • Loading branch information
yagizhanNY committed Feb 9, 2024
2 parents afbba9f + df04517 commit d0fed03
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions SiemensIXBlazor/Components/AGGrid/AGGrid.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

namespace SiemensIXBlazor.Components.AGGrid
{
public partial class AGGrid
{
[Parameter, EditorRequired]
public string Id { get; set; } = string.Empty;
public partial class AGGrid
{
[Parameter, EditorRequired]
public string Id { get; set; } = string.Empty;

public async Task CreateGrid(GridOptions options)
{
if (Id == string.Empty)
{
return;
}
public async Task<IJSObjectReference?> CreateGrid(GridOptions options)
{
if (Id == string.Empty)
{
return null;
}

await JSRuntime.InvokeVoidAsync("agGridInterop.createGrid", Id, JsonConvert.SerializeObject(options));
}
}
return await JSRuntime.InvokeAsync<IJSObjectReference?>("agGridInterop.createGrid", Id, JsonConvert.SerializeObject(options));
}
}
}

0 comments on commit d0fed03

Please sign in to comment.