Texnomic / JsonViewer

ASP.NET Core JsonViewer Component for Server-Side Blazor Based-on Alenaksu's Json-Viewer https://github.com/alenaksu/json-viewer.
MIT License
15 stars 6 forks source link

Example how to use #70

Open dovletmamenov opened 1 year ago

dovletmamenov commented 1 year ago

Is it possible to add example blazor app to show how to use your component?

I tried to do steps from readme file but this part does not allow me to compile the code:

Create Backing Element Reference In Example.razor.cs File:

using Texnomic.Blazor.JsonViewer;

protected JsonViewer JsonViewerInstance { get; set; }

protected async ValueTask Example(string Json) { await JsonViewerInstance.Render(Json); }

I get error saying Example method can not exist in the class with the same name