Question

Removing "delete" option from a Expanded List

Hey everyone! 

How am I able to remove this option from a Expanded list?

Thanks in advance!

Like 0

Like

4 comments
Best reply

You can remove that by overriding the list's rowToolbarItems and just leave it as an empty list. 

 

See this article here: https://customerfx.com/article/adding-row-action-menu-items-to-a-creati…

 

You can override the menu (usually to add other menu items to it). When you do so you override the "Open", "Copy", "Delete" options and need to add them back in. You could override the menu and then just not add back in the delete option. It would look like this (the article will provide more details)

viewConfigDiff: /**SCHEMA_VIEW_CONFIG_DIFF*/[
    {
        "operation": "merge",
        "name": "DataTable",
        "values": {
            //...,
            "rowToolbarItems": []
        }
        //...
    },
    //...
]/**SCHEMA_VIEW_CONFIG_DIFF*/

The important part there is just the empty array [] for the rowToolbarItems property. This would leave it with an empty menu (and the delete would no longer show)

Ryan

You can remove that by overriding the list's rowToolbarItems and just leave it as an empty list. 

 

See this article here: https://customerfx.com/article/adding-row-action-menu-items-to-a-creati…

 

You can override the menu (usually to add other menu items to it). When you do so you override the "Open", "Copy", "Delete" options and need to add them back in. You could override the menu and then just not add back in the delete option. It would look like this (the article will provide more details)

viewConfigDiff: /**SCHEMA_VIEW_CONFIG_DIFF*/[
    {
        "operation": "merge",
        "name": "DataTable",
        "values": {
            //...,
            "rowToolbarItems": []
        }
        //...
    },
    //...
]/**SCHEMA_VIEW_CONFIG_DIFF*/

The important part there is just the empty array [] for the rowToolbarItems property. This would leave it with an empty menu (and the delete would no longer show)

Ryan

Hey, Ryan ! 

Many thanks, man! 

The thing I've found out is: 

On this new update, the 8.1.1.3635, there's no "rowToolbarItems": []".  so I had to "create" it. 

Awesome knowing about you, tho. I'll seek out your articles on my next doubt. 

Have an awesome week!

Gabriel Henrique Pagotto Otero,

This is true, you won't always see all properties for a List (or any component), especially in the case where the page inherits the list from the base/parent page. However, any of the properties can be added to the merge to override them from how they are implemented in the base page.

Ryan

Ryan Farley,



It would be time to organize advanced Creatio development training from other Creatio partners, it seems you have most advanced documentation/knowledge😅😅

Show all comments