How to create custom option/action for backend entry lists Please excuse me for the title.. I have no idea how to describe my problem better - if someone knows a better description for this question feel free to edit it.

I made a screenshot to clarify what I want to know.. Is it somehow possible to hook a custom option there?


I made an excel export for our customer and I would like to add an "export to excel" button there that sends an ajax request to my controller. Could you please explain me in detail how to do this?

Thank you very much

Edit
So thanks to your answers I created this test (just to see if I can add something)

&lt;?php

namespace Craft;

class SRExcelExport_ExportElementAction extends BaseElementAction
{
    /**
     * Get element action name.
     *
     * @return string
     */
    public function getName()
    {
        return Craft::t('Export Files');
    }

    public function isDestructive()
    {
        return true;
    }

    public function performAction(ElementCriteriaModel $criteria)
    {
        // Remove all the ingredients from the selected elements
        $elements = $criteria-&gt;find();

        foreach ($elements as $element)
        {
            //do something
        }

        // Success!
        $this-&gt;setMessage(Craft::t('success'));
        return true;
    }

    public function getTriggerHtml()
    {
        $js = 'new Craft.ElementActionTrigger({' .
            'handle: '.JsonHelper::encode($this-&gt;getClassHandle()).', ' .
            'batch: true, ' .
            'validateSelection: function($selectedElements){ return true; }, ' .
            'activate: function($selectedElements){ alert("Made you click"); }' .
            '});';

        craft()-&gt;templates-&gt;includeJs($js);
    }
}


With the Plugin Handle SRExcelExport with the folder structure
srexcelexport
--elementactions
-----SRExcelExport_ExportElementAction.php

But nothing happens, the file is ignored, even a die() in the constructor does nothing. Do I need to do something to "call" the class myself or is there just a stupid error I made? I bet its just an obvious minor error I can't see right now
Indeed there is! You're looking for Element Actions...


  When you select elements on their index pages, the regular toolbar options get replaced with new ones that will trigger various actions, like batch-deleting all of the selected elements.
  
  That functionality is provided by Element Action classes.