Skip to content

Commit

Permalink
markdown table
Browse files Browse the repository at this point in the history
  • Loading branch information
scniro committed Mar 14, 2018
1 parent 9ceb442 commit 0bc15d8
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 | 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 |
| 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) | `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 0bc15d8

Please sign in to comment.