jquery plugins - When using Handsontable how to force a selected cell into edit mode? -
handsontable provides nice hooks when cell selected can't seem figure out way allow me force cell edit mode when has been selected.
i can detect cell selection this:
handsontable.pluginhooks.add( 'afterselection', function( row, column ) { var current_td = this.getcell( row, column ); });
and there can obtain cell element selected. there can't seem trigger cell edit mode (where has actively selected textarea field inside of it). triggered double click. doing obvious doesn't seem work:
handsontable.pluginhooks.add( 'afterselection', function( row, column ) { var current_td = this.getcell( row, column ); $(current_td).dblclick(); });
anyone else ever done or have thoughts on how might work?
for intersted in question, there better programmable way achieve same result.
this.selectcell(row, col); this.getactiveeditor().beginediting();
this selects (row, col)
cell , enters edit mode (i.e. same double click or pressing f2/enter).