This is my adding script to disable checkboxes
PHP Code:
this.view.checkboxes = false;
this.view.checkboxes = false;
define('custom:views/record/list', [], () => {
class Handler {
/**
* @param {import('view').default} view
*/
constructor(view) {
this.view = view;
}
process() {
this.listenTo(this.view, 'after:render', () => {
this.view.rowActionsDisabled = true;
this.view.massActionsDisabled = true;
});
}
}
// Establish event support.
Object.assign(Handler.prototype, Backbone.Events);
return Handler;
});
Leave a comment: