【发布时间】:2021-12-06 05:55:30
【问题描述】:
我在对象编辑器的 pimcore 面板中添加了一个按钮。单击按钮时如何从表中获取选定的记录?
表:
到目前为止,我已经尝试过:
postOpenObject: function (object, type) {
object.toolbar.add({
iconCls: 'pimcore_icon_export',
scale: 'small',
handler: function () {
const req = new XMLHttpRequest();
// I need to pass selected items in a function
req.open("GET", '/admin/export-xyz/', true);
}.bind(this, object)
});
pimcore.layout.refresh();
},
【问题讨论】:
标签: javascript php pimcore