xj/yii2-pnotify-widget

yii2-pnotify-widget

安装数: 1,329

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 2

开放问题: 0

语言:JavaScript

1.0.1 2015-03-06 08:17 UTC

This package is auto-updated.

Last update: 2024-09-10 19:19:31 UTC


README

=================== http://sciactive.github.io/pnotify

composer.json

"require": {
    "xj/yii2-pnotify-widget": "*"
},

示例

//在视图

PnotifyAssets::register($this);

//JS

new PNotify({
    title: "Over Here",
    text: "Check me out. I'm in a different stack.",
    addclass: "stack-custom",
    stack: {"dir1": "down", "dir2": "right", "push": "top"}
})

//在视图

PNotifyHelperAssets::register($this);

//JS

XJPnotify.notice("notice message")
XJPnotify.info("info message")
XJPnotify.error("error message")
XJPnotify.success("success message")

XJPnotify.setIcon("glyphicon glyphicon-envelope")
XJPnotify.setIcon("ui-icon ui-icon-mail-closed")