xj/yii2-pnotify-widget

yii2-pnotify-widget

Installs: 1 365

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 2

Open Issues: 0

Language:JavaScript

1.0.1 2015-03-06 08:17 UTC

This package is auto-updated.

Last update: 2024-12-10 19:57:31 UTC


README

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

composer.json

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

example

//in View

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"}
})

//in View

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")