record list dashlet additional row actions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user