1.1.0 • Published 6 years ago

inferno-ace v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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.
1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago