How to set url of delete button of editableTableField? As title says, I have a URL which I need to call when someone clicks on delete button. I already have a primary key which I need to set and append in delete URL. How'd I do that?



Update

Rows are being generated as:

{% if posts is defined %}
    {% for post in posts %}
        {% set rows = rows|merge([
        [
            post['scheduledTime'],
            post['URL']
        ]
        ])
    %}
        {% set index = index+1 %}
    {% endfor %}
{% endif %}
Because the table saves the inputs as JSON they are not individually deleted from the backend.

The way the table works is, when you click a delete button javascript removes those inputs for each cell from the form. When the user saves the form it saves the updated cells as JSON, if there are any.

However if you are saving each row individually then I would listen for the click of the delete button. When clicked, grab your id, then call your plugin action method for delete by using this:

Craft.postActionRequest('pluginname/controller/deleteMethod', {params:value}, function(data){ 
   "do stuff if needed…"; 
});