Skip to content

scripter-co/inferno-ace

Repository files navigation

Inferno Ace

Travis npm

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.
  • onInput

    • Mapped to Ace change event with additional inputValue key containing the contents of the code editor.

About

Ace editor for Inferno

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published