All was going well in my Angular4 environement using Handsontable CE, until I hit a road block. This has to be super simple and I’m hoping someone could help. All I’m trying to do is access my instance and use the search feature to search through the table I have created, here are some snippets
HTML
<hot-table [settings]=“settings” hotId=“target”>
COMPONENT
import Handsontable from ‘handsontable’;
import { HotRegisterer } from ‘angular-handsontable’;
…
…
…
settings = {
data: this.paramName,
…
…
rowHeaders: true,
search: true,
columnSorting: true
});
}
constructor(private _hotRegisterer: HotRegisterer) {}
public search(s: string) {
const hot = this._hotRegisterer.getInstance(this.instance);
const searchPlug = hot.getPlugin(‘search’);
const queryResult = searchPlug.query(‘SAP’);
…
}
What the heck am I doing wrong here? Search is not even available on the “hot” instance. Is it not available in CE?