Hi,
really don't understand ES6. .i hope front end specialist can post "how-to"
contact.json :
custom:views/record/row-actions/relationship-edit-and-remove-and-print.js
result : can't import outside module.
I have just added "print Action".
Any help ?
or transform this to "non ES6"
really don't understand ES6. .i hope front end specialist can post "how-to"
contact.json :
PHP Code:
"contactInsurances": {
"rowActionsView": "custom:views/record/row-actions/relationship-edit-and-remove-and-print",
"select": false,
"create": true,
"layout": "listInsurancesForContact"
},
PHP Code:
import RelationshipActionsView from 'views/record/row-actions/relationship';
class RelationshipEditAndRemoveAndPrintActionsView extends RelationshipActionsView {
getActionList() {
const list = [];
if (this.options.acl.edit) {
list.push({
action: 'quickEdit',
label: 'Edit',
data: {
id: this.model.id,
},
});
}
if (this.options.acl.delete) {
list.push({
action: 'quickRemove',
label: 'Remove',
data: {
id: this.model.id,
},
});
}
if (this.options.acl.delete) {
list.push({
action: 'quickPrint',
label: 'Print',
data: {
id: this.model.id,
},
});
}
return list;
}
}
export default RelationshipEditAndRemoveAndPrintActionsView;
I have just added "print Action".
Any help ?
or transform this to "non ES6"
Comment