Ace Editor for Inferno.
npm i inferno-ace
import Component from 'inferno-component';
import InfernoAce from 'inferno-ace'
class ExampleComponent extends Component {
onChange(e) {
console.log('onChange called', e);
}
onInput(e) {
console.log('onInput called', e);
}
render() {
return (
<InfernoAce fontSize={16} onChange={this.onChange} onInput={this.onInput} />
);
}
}
-
fontSize
- Font size to use when rendering the editor
-
onChange
- Mapped to Ace change event with additional
inputValue
key containing the contents of the code editor.
- Mapped to Ace change event with additional
-
onInput
- Mapped to Ace change event with additional
inputValue
key containing the contents of the code editor.
- Mapped to Ace change event with additional