Skip to content

Commit

Permalink
cleaning demo , readme with #20
Browse files Browse the repository at this point in the history
  • Loading branch information
mariohmol committed Feb 8, 2020
1 parent 268640c commit 71db660
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ Use debug mode to see in your console the data and options passed to jsoneditor.
<json-editor [debug]="true" [options]="editorOptionsData" [data]="dataStructure"></json-editor>
```

## JSONOptions missing params

If you find youself trying to use an custom option that is not mapped here, you can do:

```ts
let editorOptions: JsonEditorOptions = new JsonEditorOptions(); (<any>this.editorOptions).templates = [{menu options objects as in json editor documentation}]
```

See the [issue](https://github.com/mariohmol/ang-jsoneditor/issues/57)

## Internet Explorer

If you want to support IE, please follow this guide:
Expand Down
10 changes: 10 additions & 0 deletions ang-jsoneditor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ Use debug mode to see in your console the data and options passed to jsoneditor.
<json-editor [debug]="true" [options]="editorOptionsData" [data]="dataStructure"></json-editor>
```

## JSONOptions missing params

If you find youself trying to use an custom option that is not mapped here, you can do:

```ts
let editorOptions: JsonEditorOptions = new JsonEditorOptions(); (<any>this.editorOptions).templates = [{menu options objects as in json editor documentation}]
```

See the [issue](https://github.com/mariohmol/ang-jsoneditor/issues/57)

## Internet Explorer

If you want to support IE, please follow this guide:
Expand Down
2 changes: 1 addition & 1 deletion ang-jsoneditor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ang-jsoneditor",
"version": "1.8.4",
"version": "1.9.0",
"license": "MIT",
"homepage": "https://github.com/mariohmol/ang-jsoneditor",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions ang-jsoneditor/src/jsoneditor/jsoneditoroptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class JsonEditorOptions {
public schema: Object;
public search: boolean;
public indentation: Number;
public template: Object;
public theme: Number;
public language: String;
public languages: Object;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ang-jsoneditor",
"version": "1.8.4",
"version": "1.9.0",
"private": true,
"repository": {
"type": "git",
Expand Down
2 changes: 0 additions & 2 deletions src/app/demo/demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,13 @@ export class DemoComponent implements OnInit {
}

changeLog(event = null) {
debugger;
console.log(event);
console.log('change:', this.editor);
console.log('change2:', this.editorTwo);
this.showData = this.editorTwo.get();
}

changeEvent(event) {
debugger;
console.log(event);
}

Expand Down

0 comments on commit 71db660

Please sign in to comment.