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 47eaff5 commit 6be8d70
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ require('codemirror/mode/javascript/javascript');

## props

| prop | type *`default`* | components | description |
|--------------|-------------------|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------|
| `autoCursor` | boolean *`true`* | `Controlled` `UnControlled` | should component cursor position correct when `value` changed |
| `autoFocus` | boolean *`false`* | `Controlled` `UnControlled` | should component focus on mount |
| `autoScroll` | boolean *`true`* | `Controlled` `UnControlled` | should component scroll cursor position into view when `value` changed |
| `className` | string | `Controlled` `UnControlled` | pass through class *`class="react-codemirror2 className"`* |
| `defineMode` | object | `Controlled` `UnControlled` | pass a [custom mode](http://marijnhaverbeke.nl/blog/codemirror-mode-system.html) via `{name: 'custom', fn: myModeFn}` |
| `detach` | boolean | `UnControlled` | should component ignore new props |
| `options` | object | `Controlled` `UnControlled` | [codemirror configuration](https://codemirror.net/doc/manual.html#config) |
| `value` | string | _**`Controlled`**_ `UnControlled` | component value _**must be managed for controlled components**_ |
| prop | type *`default`* | components | description |
|--------------|------------------------|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------|
| `autoCursor` | boolean *`true`* | `Controlled` `UnControlled` | should component cursor position correct when `value` changed |
| `autoFocus` | boolean *`false`* | `Controlled` `UnControlled` | should component focus on mount |
| `autoScroll` | boolean *`true`* | `Controlled` `UnControlled` | should component scroll cursor position into view when `value` changed |
| `className` | string | `Controlled` `UnControlled` | pass through class *`class="react-codemirror2 className"`* |
| `defineMode` | object | `Controlled` `UnControlled` | pass a [custom mode](http://marijnhaverbeke.nl/blog/codemirror-mode-system.html) via `{name: 'custom', fn: myModeFn}` |
| `detach` | boolean | `UnControlled` | should component ignore new props |
| `options` | object | `Controlled` `UnControlled` | [codemirror configuration](https://codemirror.net/doc/manual.html#config) |
| `value` | string | *`Controlled` `UnControlled` | * component value _**must be managed for controlled components**_ |

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

Expand Down

0 comments on commit 6be8d70

Please sign in to comment.