Skip to content

Commit 4c22705

Browse files
author
Zach Kirsch
committed
Add prop to readme
1 parent 3c041c6 commit 4c22705

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,16 @@ require('codemirror/mode/javascript/javascript');
7474

7575
## props
7676

77-
| prop | type *`default`* | components | description |
78-
|--------------|------------------------|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------|
79-
| `autoCursor` | boolean *`true`* | `Controlled` `UnControlled` | should component cursor position correct when `value` changed | |
80-
| `autoScroll` | boolean *`true`* | `Controlled` `UnControlled` | should component scroll cursor position into view when `value` changed |
81-
| `className` | string | `Controlled` `UnControlled` | pass through class *`class="react-codemirror2 className"`* |
82-
| `defineMode` | object | `Controlled` `UnControlled` | pass a [custom mode](http://marijnhaverbeke.nl/blog/codemirror-mode-system.html) via `{name: 'custom', fn: myModeFn}` |
83-
| `detach` | boolean | `UnControlled` | should component ignore new props |
84-
| `options` | object | `Controlled` `UnControlled` | [codemirror configuration](https://codemirror.net/doc/manual.html#config) |
85-
| `value` | string | *`Controlled` `UnControlled` | * component value _**must be managed for controlled components**_ |
77+
| prop | type *`default`* | components | description |
78+
|----------------------|-----------------------------------------|-----------------------------------|-----------------------------------------------------------------------------------------------------------------------|
79+
| `autoCursor` | boolean *`true`* | `Controlled` `UnControlled` | should component cursor position correct when `value` changed |
80+
| `autoScroll` | boolean *`true`* | `Controlled` `UnControlled` | should component scroll cursor position into view when `value` changed |
81+
| `className` | string | `Controlled` `UnControlled` | pass through class *`class="react-codemirror2 className"`* |
82+
| `defineMode` | object | `Controlled` `UnControlled` | pass a [custom mode](http://marijnhaverbeke.nl/blog/codemirror-mode-system.html) via `{name: 'custom', fn: myModeFn}` |
83+
| `codeMirrorInstance` | function *`require('codemirror')`* | `Controlled` `UnControlled` | provides a specific CodeMirror instance |
84+
| `detach` | boolean | `UnControlled` | should component ignore new props |
85+
| `options` | object | `Controlled` `UnControlled` | [codemirror configuration](https://codemirror.net/doc/manual.html#config) |
86+
| `value` | string | *`Controlled` `UnControlled` | * component value _**must be managed for controlled components**_ |
8687

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

0 commit comments

Comments
 (0)