sscs/sweetalert-laravel

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

dev-master 2017-11-22 02:24 UTC

This package is auto-updated.

Last update: 2024-03-29 03:44:27 UTC


README

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){};