LineActions.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace UCore\DcatAdmin\Grid\Displayers;
  3. use Dcat\Admin\Grid\Displayers\Actions;
  4. class LineActions extends Actions
  5. {
  6. /**
  7. * @return string
  8. */
  9. protected function getViewLabel()
  10. {
  11. $label = trans('admin.show');
  12. return "<i title='{$label}' class=\"feather icon-eye grid-action-icon\">{$label}</i> &nbsp;";
  13. }
  14. /**
  15. * @return string
  16. */
  17. protected function getEditLabel()
  18. {
  19. $label = trans('admin.edit');
  20. return "<i title='{$label}' class=\"feather icon-edit-1 grid-action-icon\">{$label}</i> &nbsp;";
  21. }
  22. /**
  23. * @return string
  24. */
  25. protected function getQuickEditLabel()
  26. {
  27. $label = trans('admin.quick_edit');
  28. return "<i title='{$label}' class=\"feather icon-edit grid-action-icon\">{$label}</i> &nbsp;";
  29. }
  30. /**
  31. * @return string
  32. */
  33. protected function getDeleteLabel()
  34. {
  35. $label = trans('admin.delete');
  36. return "<i class=\"feather icon-trash grid-action-icon\" title='{$label}'>{$label}</i> &nbsp;";
  37. }
  38. }