I am able to successfully create a custom action on datalists. But I would like to know how to enable this custom action only for my custom list type. By default, it is enabled for all the list items.
I figured out which files (datagrid.get.html.ftl & datagrid.get.js) I need to modify. But I still don't know how to get the currently selected list type so that I can compare and then disable the action.
Can anyone please tell me how to get the currently selected list details? I can loop through all the available lists, but don't know how to get the currently selected list. I can get the id from the URL.