When using Handsontable how to force a selected cell into edit mode?

前端 未结 3 1321
误落风尘
误落风尘 2021-01-04 11:53

Handsontable provides some nice hooks for when a cell is selected but I can\'t seem to figure out way to get it to allow me to force a cell into edit mode when it has been s

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-04 12:17

    For anyone intersted in this question, now there is a better programmable way to achieve the same result.

    this.selectCell(row, col);
    this.getActiveEditor().beginEditing();
    

    This selects the (row, col) cell and enters edit mode (i.e. same as double click or pressing F2/Enter).

提交回复
热议问题