Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User shouldn't be able Insert fields when onEditable option is false #31

Open
philmirez opened this issue Oct 6, 2017 · 1 comment
Open

Comments

@philmirez
Copy link

Set onEditable to false.

    $scope.obj = {
        data: json, 
        options: {
            mode: 'tree',
            onEditable: function(){return false;}
            }
     };

Click on the box [ ] to the left of a key and then select insert. Right now, a blank field and value are inserted. Warning signs are displayed without any capabilities to resolve since json is readonly.

image

@nooranshah
Copy link

same here !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants