如何解决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]之类的数据
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。