handsontable / hot-table

Handsontable - Best Data Grid Web Component with Spreadsheet Look and Feel.
http://handsontable.github.io/hot-table/
MIT License
131 stars 36 forks source link

Programatically close cell editor #45

Closed phamvanthanh closed 6 years ago

phamvanthanh commented 7 years ago

Hi @wszymanski, I trigger cell to open i dialog and wanted to close the cell editor right after dialog is opened, which function will help me to do that?

warpech commented 6 years ago

Use the destroyEditor method as in:

document.querySelector("hot-table").hot.destroyEditor();

See: https://docs.handsontable.com/0.35.1/Core.html#destroyEditor

Sorry for late response!