Skip to content

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

@philmirez

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

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