Vaadin-combo-box在ag-grid中使用时将数组转换为[object Object]

问题描述

我在ag-grid中使用Vaadin-combo-Box,但不知道为什么将数组转换为[object Object]。

下面是农业网格的代码

columnDefs = [{
   headerName: "Students",field: "studentId",cellRenderer: this.renderStudentDropdown
}]


renderStudentDropdown(){
const records = [{"id": "123","title" : "Student 1"},{"id": "456","title" : "Student 2"}]
let html = `<vaadin-comBox-Box .items=${templates} .value='${value}' item-label-path="title" item-value-path="id"></vaadin-comBox-Box>`;
return html
}

在浏览器中渲染后,其未在下拉菜单显示数据,并没有显示[object Object]之类的数据

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)