Skip to content

Commit

Permalink
readme table
Browse files Browse the repository at this point in the history
  • Loading branch information
scniro committed Mar 14, 2018
1 parent be1d28a commit 9ceb442
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ require('codemirror/mode/javascript/javascript');

## events

| event | returns | components | description |
|----------------------|---------------------------------|-----------------------------------|-------------------------------------------------------------------------------------------------------------|
| `editorDidAttach` | editor | `UnControlled` | component is now **responding** to new props |
| `editorDidConfigure` | editor | `Controlled` `UnControlled` | component configuration has been set |
| `editorDidDetach` | editor | `UnControlled` | component is now **ignoring** new props |
| `editorDidMount` | editor, _**next**_ | `Controlled` `UnControlled` | **invoking optional `next` will trigger `editorDidConfigure`** |
| `editorWillUnmount` | editor | `Controlled` `UnControlled` | invoked before [`componentWillUnmount`](https://reactjs.org/docs/react-component.html#componentwillunmount) |
| `onBeforeChange` | editor, data, value, _**next**_ | `Controlled` _**`UnControlled`**_ | if used, `next` is returned via `UnControlled` and *must* be invoked to trigger onChange |
| `onChange` | editor, data, value | `Controlled` `UnControlled` | the component value has been changed |
| event | components | description |
|---------------------------------------------------|----------------------------|-------------------------------------------------------------------------------------------------------------|
| `editorDidAttach(editor)` | `UnControlled` | component is now **responding** to new props |
| `editorDidConfigure(editor)` | `Controlled,UnControlled` | component configuration has been set |
| `editorDidDetach(editor)` | `UnControlled` | component is now **ignoring** new props |
| `editorDidMount(editor, _**next**_)` | `Controlled,UnControlled` | **invoking optional `next` will trigger `editorDidConfigure`** |
| `editorWillUnmount(editor)` | `editor` | `Controlled,UnControlled` | invoked before [`componentWillUnmount`](https://reactjs.org/docs/react-component.html#componentwillunmount) |
| `onBeforeChange(editor, data, value, _**next**_)` | `Controlled,UnControlled*` | * if used, `next` is returned via `UnControlled` and *must* be invoked to trigger onChange |
| `onChange(editor, data, value)` | `Controlled,UnControlled` | the component value has been changed |

## events cont. [wrapped codemirror events](https://codemirror.net/doc/manual.html#events)

Expand Down

0 comments on commit 9ceb442

Please sign in to comment.