ngx-json-viewer
ngx-json-viewer copied to clipboard
Add click functionality
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)