DeleteButton.php 686 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace ModulesGarden\ProxmoxAddon\App\UI\IpLog\Buttons;
  3. use ModulesGarden\ProxmoxAddon\App\UI\IpLog\Modals\DeleteModal;
  4. use ModulesGarden\ProxmoxAddon\Core\UI\Interfaces\AdminArea;
  5. use ModulesGarden\ProxmoxAddon\Core\UI\Widget\Buttons\ButtonDataTableModalAction;
  6. /**
  7. * Description of DeleteButton
  8. *
  9. * @author Pawel Kopec <pawelk@modulesgardne.com>
  10. */
  11. class DeleteButton extends ButtonDataTableModalAction implements AdminArea
  12. {
  13. protected $icon = 'lu-btn__icon lu-zmdi lu-zmdi-delete';
  14. public function initContent()
  15. {
  16. $this->initIds('deleteButton');
  17. $this->initLoadModalAction(new DeleteModal());
  18. $this->switchToRemoveBtn();
  19. }
  20. }