1.1.0 • Published 6 years ago
inferno-ace v1.1.0
Inferno Ace
Ace Editor for Inferno.
Installation
npm i inferno-ace
Example
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} />
);
}
}
Parameters
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