Handsontable Dropdown with key-value pair

When using handsontable, the drop-down list itself cannot meet the business needs, and the key-value type dropdown needs to be used. After
searching for a long time, I finally found a
reference solution
that can meet the needs. This solution perfectly solves my problem.
However, two points should be paid attention to in the use process:
1. This plug-in is a jquery plug-in based on choose.jquery.js, so remember to introduce choose.jquery.js and jquery.js during use.
2. Due to the new version of handsontable, some api is unavailable

in the customDropdownRenderer method

Handsontable.TextCell.renderer needs to be changed to Handsontable.renderers.TextRenderer

Please refer to the complete case

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324928989&siteId=291194637