<?php

namespace ModulesGarden\HostingQuotaNotifications\App\UI\LoggerManager\Buttons;

use \ModulesGarden\HostingQuotaNotifications\Core\UI\Widget\Buttons\MassActionButtonContextLang;

use \ModulesGarden\HostingQuotaNotifications\App\UI\LoggerManager\Modals\MassDeleteLoggerModal;

use \ModulesGarden\HostingQuotaNotifications\Core\UI\Interfaces\AdminArea;
/**
 * Description of MassDeleteLoggerButton
 *
 * @author Artur Pilch <artur.pi@modulesgarden.com>
 */
class MassDeleteLoggerButton extends MassActionButtonContextLang implements AdminArea
{
    protected $id    = 'massDeleteLoggerButton';
    protected $name  = 'massDeleteLoggerButton';
    protected $title = 'massDeleteLoggerButton';
    protected $class = ['btn btn--danger btn--link btn--plain'];
    protected $icon = 'btn--icon zmdi zmdi-delete';
    
    public function initContent()
    {
        $namespace = str_replace("\\", "_", self::class);
        $this->htmlAttributes['@click'] = 'loadModal($event, \'' . $this->id . '\',\'' . $namespace . '\')';
        $this->setModal(new MassDeleteLoggerModal());
    }    
}
