AaronZjs / sweetalert-laravel by o0x00

sweetalert for laravel package.beautiful replacement for JavaScript's "Alert"
6
0
1
Package Data
Maintainer Username: o0x00
Maintainer Contact: 2213531641@qq.com (sscs)
Package Create Date: 2017-04-12
Package Last Update: 2017-11-22
Language: PHP
License: MIT
Last Refreshed: 2024-03-26 15:00:50
Package Statistics
Total Downloads: 6
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

sweetalert-laravel

sweetalert for laravel package.beautiful replacement for JavaScript's "Alert"

test

rely:

script src : https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert-dev.min.js

css link : https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert.min.css

/**

Example.

use Alert\Alert;

return Alert::Alert('title','message','success');

*/

/**

  • 包含title,主题信息,状态的弹窗
  • @param string $title
  • @param string $message
  • @param success/error/info $state
  • @return string; */

static public function Alert($title,$message,$state){};

/**

  • 仅包含标题的alert
  • @param string $message
  • @return string; */

static public function BasisMessage($message = ''){};

/**

  • ajax是否确定弹窗
  • @param string $title
  • @param string $text
  • @param string $back_function eg : fuck(x,x,x,x);
  • @return string; */

static public function ajax($title,$text,$back_function){};