CodeMirrorAdapterEx.defineOption method
CodeMirrorAdapterEx › defineOption
Unofficial
Define a new editor option with a default value and change handler.Signature:
defineOption(option: string, defaultValue: unknown, handler: () => void): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| option | string | The name of the option. |
| defaultValue | unknown | The default value for the option. |
| handler | () => void | The handler invoked when the option changes. |
Returns: void