2017 © Pedro Peláez
 

yii2-extension yii2-noty

A Yii2 wrapper widget for the Noty, a noty plugin with jQuery.

image

efureev/yii2-noty

A Yii2 wrapper widget for the Noty, a noty plugin with jQuery.

  • Thursday, September 15, 2016
  • by efureev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

yii2-noty

GitHub version Build Status Dependency Status Code Climate Test Coverage, (*1)

Wrapper for https://github.com/efureev/noty, (*2)


Install

Either run, (*3)

composer require "efureev/yii2-noty: *"

or add, (*4)

"efureev/yii2-noty": "~1",

to the require section of your composer.json file., (*5)


Methods

  • alert - show the alert window
// @var string|object
app.msg.alert('Alarma!...');
  • info - show the info window
// @var string|object
app.msg.info('Alarma!...');
  • error - show the error window
// @var string|object
app.msg.error('Alarma!...');
  • success - show the success window
// @var string|object
app.msg.success('Alarma!...');
  • warning - show the warning window
// @var string|object
app.msg.warning('Alarma!...');
  • confirm - show the warning window
// @var string|object
app.msg.confirm('Alarma!...');
//@var function onOkFn : function on click Ok
//@var function onCancelFn : function on click Cancel
//@var object callbacks : callbacks from noty
app.msg.confirm('Alarma!...',onOkFn, onCancelFn, callbacks);

(callbacks)[http://ned.im/noty/#/about], (*6)


Run

Example 1

\efureev\noty\NotyWidget::widget();
app.msg.error('Alarma!');
app.msg.success('You are winner!');
app.msg.success('You are winner!');

Example 2: set Flashes

app()->session->setFlash('warning', 'Warning.');
app()->session->setFlash('error', 'Error.');
app()->session->setFlash('info', 'Joke.');

Tests

vendor/bin/phpunit, (*7)

The Versions

15/09 2016

dev-master

9999999-dev

A Yii2 wrapper widget for the Noty, a noty plugin with jQuery.

  Sources   Download

MIT

The Requires

  • bower-asset/animate.css ~3
  • yiisoft/yii2 ~2
  • bower-asset/components-font-awesome *
  • bower-asset/fe-noty ~2

 

The Development Requires

extension yii2 widget alert noty

15/09 2016

0.1.3

0.1.3.0

A Yii2 wrapper widget for the Noty, a noty plugin with jQuery.

  Sources   Download

MIT

The Requires

  • bower-asset/fe-noty ~2
  • bower-asset/animate.css ~3
  • bower-asset/components-font-awesome *
  • yiisoft/yii2 ~2

 

The Development Requires

extension yii2 widget alert noty

15/09 2016

0.1.2

0.1.2.0

A Yii2 wrapper widget for the Noty, a noty plugin with jQuery.

  Sources   Download

MIT

The Requires

  • bower-asset/noty ~2
  • bower-asset/animate.css ~3
  • bower-asset/components-font-awesome *
  • yiisoft/yii2 ~2

 

The Development Requires

extension yii2 widget alert noty

12/09 2016

0.1.1

0.1.1.0

A Yii2 wrapper widget for the Noty, a noty plugin with jQuery.

  Sources   Download

MIT

The Requires

  • bower-asset/noty ~2
  • bower-asset/animate.css ~3
  • bower-asset/components-font-awesome *
  • yiisoft/yii2 ~2

 

The Development Requires

extension yii2 widget alert noty