mariohmol / ang-jsoneditor

Angular Jsoneditor that works with angular 4 to angular 15
https://stackblitz.com/edit/angular-json-editor
MIT License
156 stars 89 forks source link

JsonEditorOptions "onClassName" not having a node argument #99

Closed HeyItsRoi closed 2 years ago

HeyItsRoi commented 2 years ago

I am trying to find a way to add class names to each node when I'm in tree mode. I'm assuming that the onClassName method in the JsonEditorOptions is just missing an argument

and instead of it being like this:

    onClassName: () => string;

I would like it to be like this:

    onClassName: (node: JsonEditorTreeNode) => string;
mariohmol commented 2 years ago

Accepted your PR, thank you!