joghyrt / blazor.jsoneditor Goto Github PK
View Code? Open in Web Editor NEWJson Editor and Viewer for Blazor Server and WASM App.
Home Page: https://66546b0fe74ef3008ca00fd0--cool-pasca-c1252e.netlify.app/
License: MIT License
Json Editor and Viewer for Blazor Server and WASM App.
Home Page: https://66546b0fe74ef3008ca00fd0--cool-pasca-c1252e.netlify.app/
License: MIT License
When selecting an Array as the valuekind i need to be able to allow for array of objects, how would i do that?
Describe the bug
The editor shows the content it is fed via DemoJson.Json, but it is not possible to click the '+' to get a new node.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect clicking the '+' icon would allow me to add a new json node.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
I tried the demo url, it doesnt load.
I want to start Json Editor with an array [] instead of object {} .
I have binded the value to an empty array but it shows an object .
<JsonEditor @bind-Value="DemoJson.Json"
FieldName="@nameof(DemoJson.Json)"
ValidationFor="@(() => DemoJson.Json)"
CustomEditor="typeof(JsonItemCustomEditor)"
CustomItemView="typeof(JsonItemCustomView)"
CustomObjectView="typeof(JsonObjectCustomView)">
</JsonEditor>
public partial class CreateJson
{
private IndexModel DemoJson { get; set; } = new IndexModel();
public CreateJson()
{
DemoJson.Json = "[]";
}
}
As you can see it starts with an object.
Can you please tell me if I am doing something wrong or if it is a bug ?
IT appears that the Blazor.JsonEditor.js is missing from the nuget package for a blazor server application. I've checked the nuget package and there is not a .js file in the package at all, even under the staticassets folder.
Steps to reproduce the behavior:
Expected behavior
Should load script
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.