ButtonDatatableShowModal.php 766 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace ModulesGarden\ProxmoxAddon\Core\UI\Widget\Buttons;
  3. use \ModulesGarden\ProxmoxAddon\Core\UI\Interfaces\AjaxElementInterface;
  4. use \ModulesGarden\ProxmoxAddon\Core\UI\Widget\Modals\ExampleModal;
  5. /**
  6. * base button controller
  7. *
  8. * @author Sławomir Miśkowicz <slawomir@modulesgarden.com>
  9. */
  10. class ButtonDatatableShowModal extends ButtonModal implements AjaxElementInterface
  11. {
  12. protected $id = 'baseDatatableModalButton';
  13. protected $title = 'baseDatatableModalButton';
  14. protected $htmlAttributes = [
  15. 'href' => 'javascript:;',
  16. 'data-toggle' => 'lu-tooltip',
  17. ];
  18. public function initContent()
  19. {
  20. $this->initLoadModalAction(new ExampleModal());
  21. }
  22. }