ngx-json-viewer icon indicating copy to clipboard operation
ngx-json-viewer copied to clipboard

Add click functionality

Open n3wtron opened this issue 4 years ago • 0 comments

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)

n3wtron avatar May 22 '20 17:05 n3wtron