Skip to content

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

Description

@philmirez

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions