<?php

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

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

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

use \ModulesGarden\HostingQuotaNotifications\Core\UI\Interfaces\AdminArea;
/**
 * Description of DeleteLoggerModalButton
 *
 * @author Artur Pilch <artur.pi@modulesgarden.com>
 */
class DeleteLoggerModalButton extends BaseModalButton implements AdminArea
{
    protected $id    = 'deleteLoggerModalButton';
    protected $name  = 'deleteLoggerModalButton';
    protected $title = 'deleteLoggerModalButton';
    protected $class = ['btn btn--sm btn--danger btn--link btn--icon btn--plain lu-tooltip drop-target drop-element-attached-bottom drop-element-attached-center drop-target-attached-top drop-target-attached-center'];
    protected $icon  = 'btn__icon zmdi zmdi-delete';

    public function initContent()
    {
        $this->htmlAttributes['@click'] = 'loadModal($event, \'' . $this->id . '\')';

        $this->setModal(new DeleteLoggerModal());
    }
}
