josdejong / josdejong/jsoneditor

Question: how can I disable the type selection on the root node?

Open
#1,458 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
12.3k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

Hello,

Is it possible to customize the dropdown menu for the root node only? In my case, I want the type for the root node **can't be changed**, but the child node's type can still be changeable. In that case, removing or disabling the type button in the root node would be preferable.
![image](https://user-images.githubusercontent.com/34019945/183017533-f7dadf5c-cca7-4c3a-8fc1-2f259bed4559.png)

Any help would be appreciated

Regards

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.