ButtonMassAction.php 943 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons;
  3. use \ThurData\Servers\KerioEmail\Core\UI\Widget\Modals\ExampleModal;
  4. /**
  5. * base button controller
  6. *
  7. * @autor ThurData <info@thurdata.ch>
  8. */
  9. class ButtonMassAction extends ButtonModal
  10. {
  11. protected $id = 'baseMassActionButton';
  12. protected $class = ['lu-btn lu-btn--link lu-btn--plain lu-btn--default'];
  13. protected $icon = 'lu-btn__icon lu-zmdi lu-zmdi-account';
  14. protected $title = 'baseMassActionButton';
  15. protected $htmlAttributes = [
  16. 'href' => 'javascript:;'
  17. ];
  18. public function initContent()
  19. {
  20. $this->initLoadModalAction((new ExampleModal()));
  21. }
  22. public function switchToRemoveBtn()
  23. {
  24. $this->replaceClasses(['lu-btn lu-btn--danger lu-btn--link lu-btn--plain']);
  25. $this->setIcon('lu-btn__icon lu-zmdi lu-zmdi-delete');
  26. return $this;
  27. }
  28. }