Skip to content

CodeHighlighterComponent.onChange method

CodeHighlighterComponent › onChange

Adds a change listener to the component.

Signature:

onChange(callback: (newValue: string) => void): this

Parameters:

ParameterTypeDescription
callback(newValue: string) => voidThe callback to call when the value changes.

Returns: thisThe component.