0.10.4 • Published 2 years ago

ng-json-tree-view v0.10.4

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

ng-json-tree-view

A simple tree viewer component for Angular.

Demo

You can check the demo on Github Pages

Code

Github repo

Installation

npm i ng-json-tree-view

Usage

Import the module NgJsonTreeViewModule in your AppModule

Insert the ng-json-tree-view tag in your component html passing a JSON Object:

jsonObject = {
      menu: {
        id: 'file',
        value: 'File',
        popup: {
          menuitem: [
            { value: 'New', onclick: 'CreateNewDoc()' },
            { value: 'Open', onclick: 'OpenDoc()' },
            { value: 'Close', onclick: 'CloseDoc()' },
          ],
        },
      },
    };
<ng-json-tree-view [obj]="jsonObject"></ng-json-tree-view>

The original object can be full edited by default. You can activate the readonly property to prevent this:

<ng-json-tree-view [obj]="jsonObject" [readonly]="true"></ng-json-tree-view>

0.10.4

2 years ago

0.10.3

2 years ago

0.10.2

2 years ago

0.10.1

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago