Skip to content

Conversation

@n3wtron
Copy link

@n3wtron n3wtron commented May 22, 2020

Added click functionality.
Created 2 functions:
now the component accepts 1 new input parameter isSegmentClickable and emits a new signal segmentClicked.
The first one is an input function that returns a boolean

function isClickable(segment:NgxJsonSegment):boolean

the signal can be used to handle the click event

function segmentClickHandler(segment:NgxJsonSegment)

@MichaelDoyle
Copy link

This is an old PR, but just in case anyone is looking for this, I needed configurable "click handling" for my own work, and ended up forking the project and modernizing it.

https://github.com/MichaelDoyle/ngx-json-treeview

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants