This repository has been archived by the owner on Mar 16, 2021. It is now read-only.
2.0.0
Breaking change.
We've refactored @Outputs
to @Inputs
. Now you can use return false
in callbacks. The callback has to be defined as an arrow function.
All of the available hooks have an additional argument at the first position - a reference to an instance of Handsontable.
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `
<hot-table [beforeChange]="onBeforeChange"></hot-table>
`,
styleUrls: [ './app.component.css' ]
})
export class AppComponent {
onBeforeChange = (hotInstance, changes, source) => {
// context -> AppComponent
return false; // returns value in Handsontable
}
}
Rest of changes are:
- We've bumped the version of Handsontable in peerDependencies (now you can use custom cultures in numbro #21)
selectionMode
property is now supported (#76)