force list view settings param

This commit is contained in:
Yuri Kuznetsov
2025-06-10 17:41:14 +03:00
parent d48777d603
commit dc76b3340e
4 changed files with 11 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
{
"controller": "controllers/record",
"forceListViewSettings": true,
"views": {
"list": "views/email-template/list"
},

View File

@@ -637,6 +637,7 @@ class ListView extends MainView {
forceDisplayTopBar: true,
additionalRowActionList: this.getMetadata().get(`clientDefs.${this.scope}.rowActionList`),
settingsEnabled: true,
forceSettings: this.getMetadata().get(`clientDefs.${this.scope}.forceListViewSettings`),
};
if (this.getHelper().isXsScreen()) {

View File

@@ -98,6 +98,7 @@ class ListRecordView extends View {
* @property {boolean} [columnResize] Column resize. Actual only if the settings is enabled.
* @property {function(import('model').default[])} [onSelect] An on-select callback. Actual if selectable.
* As of v9.1.0.
* @property {boolean} [forceSettings] Force settings. As of v9.2.0.
*/
/**
@@ -2053,6 +2054,10 @@ class ListRecordView extends View {
this.checkboxes = false;
}
if (this.options.forceSettings) {
this.forceSettings = true;
}
/**
* @private
* @type {boolean}

View File

@@ -53,6 +53,10 @@
"type": "boolean",
"description": "Disables remove."
},
"forceListViewSettings": {
"type": "boolean",
"description": "Force list view settings for non-object entity types. As of v9.2.0."
},
"views": {
"description": "View classes. Available views: list, detail, edit, listRelated.",
"type": "object",