所以今天我想为我的数据网格添加删除功能,我的数据网格现在看起来像这样:
datagrids:
document-grid:
source:
type: orm
query:
select:
- document.id
- document.name
- document.file
from:
- { table: LeadsBundle:document, alias: document}
columns:
id:
label: ID
frontend_type: integer
name:
label: Name
file:
label: File
sorters:
columns:
id:
data_name: document.id
name:
data_name: document.name
file:
data_name: document.file
filters:
columns:
id:
type: number
data_name: document.id
name:
type: string
data_name: document.name
file:
type: string
data_name: document.file
properties:
id: ~
update_link:
type: url
route: document_update
params:
- id
actions:
update:
type: navigate
label: Update
link: update_link
icon: edit
acl_resource: document_update
更新完全正常,现在想添加删除功能有人可以帮我吗?我已经从一些文档中尝试过,但我还没有让它工作。