| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons;
- use \ThurData\Servers\KerioEmail\Core\UI\Widget\Modals\ExampleModal;
- /**
- * base button controller
- *
- * @autor ThurData <info@thrudata.ch>
- */
- class ButtonMassAction extends ButtonModal
- {
- protected $id = 'baseMassActionButton';
- protected $class = ['lu-btn lu-btn--link lu-btn--plain lu-btn--default'];
- protected $icon = 'lu-btn__icon lu-zmdi lu-zmdi-account';
- protected $title = 'baseMassActionButton';
- protected $htmlAttributes = [
- 'href' => 'javascript:;'
- ];
- public function initContent()
- {
- $this->initLoadModalAction((new ExampleModal()));
- }
- public function switchToRemoveBtn()
- {
- $this->replaceClasses(['lu-btn lu-btn--danger lu-btn--link lu-btn--plain']);
- $this->setIcon('lu-btn__icon lu-zmdi lu-zmdi-delete');
- return $this;
- }
- }
|