I'm trying to create a Button Field on a UI Component Admin Form but it looks like it's not calling the Controller. It doesn't call the custom controller,But it works when i call the defaults of Magento (save, delete, back, reset), why?.
What could it be?
Button field code
<button name="delete_header">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="buttonClasses" xsi:type="string">custom-button-class</item>
<item name="actions" xsi:type="array">
<item name="0" xsi:type="array">
<item name="targetName" xsi:type="string">api_data_form.api_data_form_data_source</item>
<item name="actionName" xsi:type="string">api/data/deleteheader</item>
</item>
</item>
</item>
</argument>
<settings>
<displayAsLink>false</displayAsLink>
<title translate="true">Delete Selected Header</title>
</settings>
</button>