<?php

namespace ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons;

use \ThurData\Servers\KerioEmail\Core\UI\Interfaces\AjaxElementInterface;
use \ThurData\Servers\KerioEmail\Core\UI\Widget\Modals\ExampleModal;

/**
 * base button controller
 *
 * @autor ThurData <info@thurdata.ch>
 */
class ButtonDatatableShowModal extends ButtonModal implements AjaxElementInterface
{
    protected $id             = 'baseDatatableModalButton';
    protected $title          = 'baseDatatableModalButton';
    protected $htmlAttributes = [
        'href'        => 'javascript:;',
        'data-toggle' => 'lu-tooltip',
    ];

    public function initContent()
    {
        $this->initLoadModalAction(new ExampleModal());
    }
}
