inferno-ace

1.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i inferno-ace

Weekly Downloads

0

Version

1.1.0

License

ISC

Last publish

Collaborators

  • nathanmahdavi