Javascript 无法为angular 5中的Handsontable注册自定义渲染器,在下找不到已注册的渲染器

Javascript 无法为angular 5中的Handsontable注册自定义渲染器,在下找不到已注册的渲染器,javascript,angular,handsontable,Javascript,Angular,Handsontable,我为angular 5中的Handsontable准备了一个自定义渲染器,但我找不到注册渲染器的方法。我找不到任何类似“registerRenderer”的函数。下面指定了渲染器函数 coverRenderer (instance, td, row, col, prop, value, cellProperties):any { var escaped = Handsontable.helper.stringify(value), button; button = document

我为angular 5中的Handsontable准备了一个自定义渲染器,但我找不到注册渲染器的方法。我找不到任何类似“registerRenderer”的函数。下面指定了渲染器函数

coverRenderer (instance, td, row, col, prop, value, cellProperties):any 
{
 var escaped = Handsontable.helper.stringify(value),
  button;

  button = document.createElement('BUTTON');
  button.setAttribute("name","Edit");
  //button.onclick = this.editFood(value);
  Handsontable.dom.addEvent(button, 'click',  () => {       
    this.editFood(value);
  });

  Handsontable.dom.empty(td);
  td.appendChild(button);
  return td;
}

当我加载表时,它会显示错误,如“coverRenderer”名称下没有找到注册的渲染器”。如何注册渲染器。我正在使用angular 5

经过数小时的尝试,我没有找到注册新渲染器的方法。因此,我在声明表的呈现器(我使用columns对象)时尝试了类似的方法

在我的html中,我有:

<hot-table [data]="data" [colHeaders]="true" [columns]="columns"></hot-table>

这对我来说很好,我看到我的列的两行有不同的颜色。在多次亵渎之后

您应该在模板中编写

 <hot-column (data="{{row}}", title="{{row}}",[renderer]="tableOptions.options.renderer" )></hot-column>

有人能告诉我“如何创建自定义渲染器并将其注册到angular 5 handsontable wrapper中?”谢谢。您能渲染一个按钮并对按钮触发器进行函数调用吗?函数应该是角分量。
 <hot-column (data="{{row}}", title="{{row}}",[renderer]="tableOptions.options.renderer" )></hot-column>