v1.php 1001 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace zin;
  3. class modalNextStep extends wg
  4. {
  5. /**
  6. * @var mixed[]
  7. */
  8. protected static $defineProps = array(
  9. 'tip: string',
  10. 'items: array'
  11. );
  12. public static function getPageCSS()
  13. {
  14. return file_get_contents(__DIR__ . DS . 'css' . DS . 'v1.css');
  15. }
  16. protected function build()
  17. {
  18. $tip = $this->prop('tip');
  19. $items = $this->prop('items');
  20. return modalDialog
  21. (
  22. setClass('modal-next-step'),
  23. row
  24. (
  25. set::align('center'),
  26. setClass('gap-2'),
  27. center
  28. (
  29. setClass('w-8 h-8 rounded-full success'),
  30. icon(setClass('text-xl font-bold'), 'check')
  31. ),
  32. span
  33. (
  34. setClass('font-medium text-md'),
  35. $tip
  36. )
  37. ),
  38. set::footerActions($items)
  39. );
  40. }
  41. }