record list dashlet additional row actions

This commit is contained in:
Yuri Kuznetsov
2024-07-30 15:04:04 +03:00
parent fce05fd5d2
commit bb534e6c46
2 changed files with 9 additions and 0 deletions
@@ -33,6 +33,12 @@ class RecordListDashletView extends BaseDashletView {
templateContent = '<div class="list-container">{{{list}}}</div>'
/**
* @protected
* @type {string[]}
*/
additionalRowActionList = undefined
/**
* A scope.
* @type {string}
@@ -142,6 +148,7 @@ class RecordListDashletView extends BaseDashletView {
showMore: true,
listLayout: this.getOption(this.layoutType + 'Layout'),
skipBuildRows: true,
additionalRowActionList: this.additionalRowActionList,
}, (view) => {
view.getSelectAttributeList(selectAttributeList => {
if (selectAttributeList) {
@@ -55,6 +55,8 @@ class ViewAndEditRowActionsView extends DefaultRowActionsView {
]);
}
this.getAdditionalActionList().forEach(item => list.push(item));
return list;
}
}