在使用handsontable的时候,本身的下拉列表无法满足业务需求,需要使用key-value类型的dropdown.
找了半天终于找到了一个可以满足需求的
参考方案
此方案完美的解决了我的问题。
但是使用过程中需要注意两点
1.此插件是基于chosen.jquery.js的一个jquery插件,所以使用的过程中记得引入chosen.jquery.js 与jquery.js
2.由于handsontable的版本跟新,有些api不能使用了

customDropdownRenderer 方法中的

Handsontable.TextCell.renderer需要改成Handsontable.renderers.TextRenderer

完整案例请参考

相关文章:

  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2021-07-04
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
猜你喜欢
  • 2021-04-07
  • 2021-10-26
  • 2022-12-23
  • 2021-11-12
  • 2021-06-08
  • 2021-09-13
  • 2021-07-19
相关资源
相似解决方案