설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sweetalert.php 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | CDN LINK
  6. |--------------------------------------------------------------------------
  7. | By default SweetAlert2 use its local sweetalert.all.js
  8. | file.
  9. | However, you can use its cdn if you want.
  10. |
  11. */
  12. 'cdn' => env('SWEET_ALERT_CDN'),
  13. /*
  14. |--------------------------------------------------------------------------
  15. | AutoClose Timer
  16. |--------------------------------------------------------------------------
  17. |
  18. | This is for the all Modal windows.
  19. | For specific modal just use the autoClose() helper method.
  20. |
  21. */
  22. 'timer' => env('SWEET_ALERT_TIMER', 5000),
  23. /*
  24. |--------------------------------------------------------------------------
  25. | Width
  26. |--------------------------------------------------------------------------
  27. |
  28. | Modal window width, including paddings (box-sizing: border-box).
  29. | Can be in px or %.
  30. | The default width is 32rem.
  31. | This is for the all Modal windows.
  32. | for particular modal just use the width() helper method.
  33. */
  34. 'width' => env('SWEET_ALERT_WIDTH', '32rem'),
  35. /*
  36. |--------------------------------------------------------------------------
  37. | Height Auto
  38. |--------------------------------------------------------------------------
  39. | By default, SweetAlert2 sets html's and body's CSS height to auto !important.
  40. | If this behavior isn't compatible with your project's layout,
  41. | set heightAuto to false.
  42. |
  43. */
  44. 'height_auto' => env('SWEET_ALERT_HEIGHT_AUTO', true),
  45. /*
  46. |--------------------------------------------------------------------------
  47. | Padding
  48. |--------------------------------------------------------------------------
  49. |
  50. | Modal window padding.
  51. | Can be in px or %.
  52. | The default padding is 1.25rem.
  53. | This is for the all Modal windows.
  54. | for particular modal just use the padding() helper method.
  55. */
  56. 'padding' => env('SWEET_ALERT_PADDING', '1.25rem'),
  57. /*
  58. |--------------------------------------------------------------------------
  59. | Animation
  60. |--------------------------------------------------------------------------
  61. | Custom animation with [Animate.css](https://daneden.github.io/animate.css/)
  62. | If set to false, modal CSS animation will be use default ones.
  63. | For specific modal just use the animation() helper method.
  64. |
  65. */
  66. 'animation' => [
  67. 'enable' => env('SWEET_ALERT_ANIMATION_ENABLE', false),
  68. ],
  69. 'animatecss' => env('SWEET_ALERT_ANIMATECSS', 'https://cdn.jsdelivr.net/npm/animate.css'),
  70. /*
  71. |--------------------------------------------------------------------------
  72. | ShowConfirmButton
  73. |--------------------------------------------------------------------------
  74. | If set to false, a "Confirm"-button will not be shown.
  75. | It can be useful when you're using custom HTML description.
  76. | This is for the all Modal windows.
  77. | For specific modal just use the showConfirmButton() helper method.
  78. |
  79. */
  80. 'show_confirm_button' => env('SWEET_ALERT_CONFIRM_BUTTON', true),
  81. /*
  82. |--------------------------------------------------------------------------
  83. | ShowCloseButton
  84. |--------------------------------------------------------------------------
  85. | If set to true, a "Close"-button will be shown,
  86. | which the user can click on to dismiss the modal.
  87. | This is for the all Modal windows.
  88. | For specific modal just use the showCloseButton() helper method.
  89. |
  90. */
  91. 'show_close_button' => env('SWEET_ALERT_CLOSE_BUTTON', false),
  92. /*
  93. |--------------------------------------------------------------------------
  94. | Toast position
  95. |--------------------------------------------------------------------------
  96. | Modal window or toast position, can be 'top',
  97. | 'top-start', 'top-end', 'center', 'center-start',
  98. | 'center-end', 'bottom', 'bottom-start', or 'bottom-end'.
  99. | For specific modal just use the position() helper method.
  100. |
  101. */
  102. 'toast_position' => env('SWEET_ALERT_TOAST_POSITION', 'top-end'),
  103. /*
  104. |--------------------------------------------------------------------------
  105. | Middleware
  106. |--------------------------------------------------------------------------
  107. | Modal window or toast, config for the Middleware
  108. |
  109. */
  110. 'middleware' => [
  111. 'toast_position' => env('SWEET_ALERT_MIDDLEWARE_TOAST_POSITION', 'top-end'),
  112. 'toast_close_button' => env('SWEET_ALERT_MIDDLEWARE_TOAST_CLOSE_BUTTON', true),
  113. 'alert_auto_close' => env('SWEET_ALERT_MIDDLEWARE_ALERT_AUTO_CLOSE', 5000),
  114. 'auto_display_error_messages' => env('SWEET_ALERT_AUTO_DISPLAY_ERROR_MESSAGES', false),
  115. ],
  116. ];